class documentation
Visitor that substitutes type variables with values.
Method | __init__ |
Undocumented |
Method | expand |
Undocumented |
Method | expand |
Expands a list of types that has an unpack. |
Method | expand |
Undocumented |
Method | interpolate |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Instance Variable | allow |
Undocumented |
Instance Variable | variables |
Undocumented |
def __init__(self, variables:
Mapping[ TypeVarId, Type]
, allow_erased_callables: bool
= False):
(source)
¶
Undocumented
def expand_types_with_unpack(self, typs:
Sequence[ Type]
) -> ((list[ Type]|AnyType)|UninhabitedType)|Instance
:
(source)
¶
Expands a list of types that has an unpack. In corner cases, this can return a type rather than a list, in which case this indicates use of Any or some error occurred earlier. In this case callers should simply propagate the resulting type.