Class | ArgumentInferContext |
Type argument inference context. |
Function | infer_function_type_arguments |
Infer the type arguments of a generic function. |
Function | infer_type_arguments |
Undocumented |
Infer the type arguments of a generic function.
Return an array of lower bound types for the type variables -1 (at index 0), -2 (at index 1), etc. A lower bound is None if a value could not be inferred.
callee_type: the target generic function arg_types: argument types at the call site (each optional; if None,
we are not considering this argument in the current pass)
arg_kinds: nodes.ARG_* values for arg_types formal_to_actual: mapping from formal to actual variable indices
Parameters | |
callee_type:CallableType | Undocumented |
arg_types:Sequence[ | Undocumented |
arg_kinds:List[ | Undocumented |
formal_to_actual:List[ | Undocumented |
context:ArgumentInferContext | Undocumented |
strict:bool | Undocumented |
Returns | |
List[ | Undocumented |