from_str#

static NodeClassType.from_str(string: str) NodeClassType#

Convert string to an instance of the NodeClassType class.

Parameters:
string: str

String to be converted.

Returns:
NodeClassType

Instance of the NodeClassType class.

Raises:
TypeError

Raised when an invalid type of string is given.

ValueError

Raised when an invalid value of string is given.