to_dir_str#
- static SlotType.to_dir_str(type_: SlotType) str #
Convert string to an instance of the
SlotType
class.- Parameters:
- string: str
String to be converted.
- Returns:
SlotType
Instance of the
SlotType
class.
- Raises:
TypeError
Raised when an invalid type of
string
is given.ValueError
Raised when an invalid value of
string
is given.