from_str#
- classmethod CriterionType.from_str(string: str) CriterionType#
Convert string to CriterionType.
- Parameters:
- string: str
String to be converted.
- Returns:
CriterionTypeInstance of the
CriterionTypeclass.
- Raises:
TypeErrorRaised when the type of the
stringis invalid.ValueErrorRaised when the value for the
stringis invalid.