from_str#

classmethod SlotType.from_str(string: str) SlotType#

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.