class documentation

class TypeResolver(BaseTypeResolver):

View In Hierarchy

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 __contains__ Undocumented
Method __delitem__ Undocumented
Method __getitem__ Undocumented
Method __init__ Initialize a new instance of this class.
Method __len__ Undocumented
Method __setitem__ Undocumented
Method resolve Resolve a type from its name.
Instance Variable _types_cache Undocumented
def __contains__(self, type_name):

Undocumented

Parameters
type_name:strUndocumented
Returns
boolUndocumented
def __delitem__(self, type_name):

Undocumented

Parameters
type_name:strUndocumented
def __getitem__(self, type_name):

Undocumented

Parameters
type_name:strUndocumented
Returns
TypeUndocumented
def __init__(self):

Initialize a new instance of this class.

def __len__(self):

Undocumented

Returns
intUndocumented
def __setitem__(self, type_name, type):

Undocumented

Parameters
type_name:strUndocumented
type:TypeUndocumented
def resolve(self, type_name):

Resolve a type from its name.

Information

Parameters
type_name:strUndocumented
Returns
TypeUndocumented
Raises
RuntimeErrorif the resolved type is None.
_types_cache: _Dict[str, Type] =

Undocumented