from_str#
- classmethod ParameterType.from_str(string: str) ParameterType#
Convert a string to an instance of the
ParameterTypeclass.- Parameters:
- string: str
String that shall be converted.
- Returns:
ParameterTypeInstance of the
ParameterTypeclass.
- Raises:
TypeErrorRaised when invalid type of
stringwas given.ValueErrorRaised when invalid value of
stringwas given.