class documentation
class BaseTypeResolver:
Known subclasses: reven2.types._type.OssiTypeResolver
, reven2.types._type.TypeResolver
A class to resolve types.
Some types need to reference forward-declared types to avoid eg. cyclic definitions. The resolver allows to efficiently resolve these types if needs be.
Method | resolve |
Resolve a type from its name. |
@_abc.abstractmethod
def resolve(self, type_name):
def resolve(self, type_name):
Resolve a type from its name.
Information
Parameters | |
typestr | Undocumented |
Returns | |
Type | Undocumented |
Raises | |
RuntimeError | if the resolved type is None. |