module documentation
Undocumented
Class |
|
Visitor that substitutes type variables with values. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Function | expand |
Expand appearances of Self type in a variable type. |
Function | expand |
Substitute any type variable references in a type given by a type environment. |
Function | expand |
Substitute type variables in type using values from an Instance. Type variables are considered to be bound by the class declaration. |
Function | expand |
May return either a list of types to unpack to, any, or a single variable length tuple. The latter may not be valid in all contexts. |
Function | freshen |
Undocumented |
Function | freshen |
Substitute fresh type variables for generic function type variables. |
Constant | has |
Undocumented |
Type Variable | F |
Undocumented |
Type Variable | T |
Undocumented |
@overload
def expand_type(typ:
@overloadProperType
, env: Mapping[ TypeVarId, Type]
, allow_erased_callables: bool
= ...) -> ProperType
:def expand_type(typ:
(source)
¶
Type
, env: Mapping[ TypeVarId, Type]
, allow_erased_callables: bool
= ...) -> Type
:Substitute any type variable references in a type given by a type environment.
Substitute type variables in type using values from an Instance. Type variables are considered to be bound by the class declaration.
def expand_unpack_with_variables(t:
UnpackType
, variables: Mapping[ TypeVarId, Type]
) -> ((list[ Type]|Instance)|AnyType)|None
:
(source)
¶
May return either a list of types to unpack to, any, or a single variable length tuple. The latter may not be valid in all contexts.