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