module documentation
(source)

Utilities for mapping between actual and formal arguments (and their types).
Class ​Arg​Type​Expander Utility class for mapping actual argument types to formal arguments.
Function map​_actuals​_to​_formals Calculate mapping between actual (caller) args and formals.
Function map​_formals​_to​_actuals Calculate the reverse mapping of map_actuals_to_formals.
def map_actuals_to_formals(actual_kinds, actual_names, formal_kinds, formal_names, actual_arg_type): (source)

Calculate mapping between actual (caller) args and formals.

The result contains a list of caller argument indexes mapping to each callee argument index, indexed by callee index.

The caller_arg_type argument should evaluate to the type of the actual argument type with the given index.

Parameters
actual​_kinds:List[nodes.ArgKind]Undocumented
actual​_names:Optional[Sequence[Optional[str]]]Undocumented
formal​_kinds:List[nodes.ArgKind]Undocumented
formal​_names:Sequence[Optional[str]]Undocumented
actual​_arg​_type:Callable[[int], Type]Undocumented
Returns
List[List[int]]Undocumented
def map_formals_to_actuals(actual_kinds, actual_names, formal_kinds, formal_names, actual_arg_type): (source)
Calculate the reverse mapping of map_actuals_to_formals.
Parameters
actual​_kinds:List[nodes.ArgKind]Undocumented
actual​_names:Optional[Sequence[Optional[str]]]Undocumented
formal​_kinds:List[nodes.ArgKind]Undocumented
formal​_names:List[Optional[str]]Undocumented
actual​_arg​_type:Callable[[int], Type]Undocumented
Returns
List[List[int]]Undocumented