from_str#
- classmethod NodeClassType.from_str(string: str) NodeClassType#
Convert string to an instance of the
NodeClassTypeclass.- Parameters:
- string: str
String to be converted.
- Returns:
NodeClassTypeInstance of the
NodeClassTypeclass.
- Raises:
TypeErrorRaised when an invalid type of
stringis given.ValueErrorRaised when an invalid value of
stringis given.