from_str#

classmethod DistributionType.from_str(string: str) DistributionType#

Convert string to DistributionType.

Parameters:
string: str

String that shall be converted.

Returns:
DistributionType

Instance of the DistributionType class.

Raises:
TypeError

Raised when invalid type of string was given.

ValueError

Raised when invalid value of string was given.