ctx
¶
A simple hashmap for working with types in a contextual manner.
Classes:
-
TypeContext
–A key-value mapping which can map between forward references and real types.
TypeContext
¶
Bases: dict[KeyT, ValueT]
, Generic[ValueT]
A key-value mapping which can map between forward references and real types.
Methods:
-
__missing__
–Hook to handle missing type references.
__missing__
¶
Hook to handle missing type references.
Allows for sharing lookup results between forward references, type aliases, real types.
Parameters: