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