from_str#
- classmethod ParameterType.from_str(string: str) ParameterType #
Convert a string to an instance of the
ParameterType
class.- Parameters:
- string: str
String that shall be converted.
- Returns:
ParameterType
Instance of the
ParameterType
class.
- Raises:
TypeError
Raised when invalid type of
string
was given.ValueError
Raised when invalid value of
string
was given.