from_str#
- static ComparisonType.from_str(string: str) ComparisonType #
Convert string to ComparisonType.
- Parameters:
- string: str
String to be converted.
- Returns:
ComparisonType
Instance of the
ComparisonType
class.
- Raises:
TypeError
Raised when the type of the
string
is invalid.ValueError
Raised when the value for the
string
is invalid.