from_str#
- classmethod OptislangPathType.from_str(string: str) OptislangPathType#
Convert a string to an instance of the
OptislangPathTypeclass.- Parameters:
- string: str
String that shall be converted.
- Returns:
OptislangPathTypeInstance of the
OptislangPathTypeclass.
- Raises:
TypeErrorRaised when invalid type of
stringwas given.ValueErrorRaised when invalid value of
stringwas given.