from_str#

static CriterionValueType.from_str(string: str) CriterionValueType#

Convert string to CriterionValueType.

Parameters:
string: str

String to be converted.

Returns:
CriterionValueType

Instance of the CriterionValueType class.

Raises:
TypeError

Raised when the type of the string is invalid.

ValueError

Raised when the value for the string is invalid.