MCPcopy Index your code
hub / github.com/python/mypy / reorder_arg_groups

Function reorder_arg_groups

mypyc/codegen/emitwrapper.py:94–96  ·  view source on GitHub ↗

Reorder argument groups to match their order in a format string.

(groups: dict[ArgKind, list[RuntimeArg]])

Source from the content-addressed store, hash-verified

92
93
94def reorder_arg_groups(groups: dict[ArgKind, list[RuntimeArg]]) -> list[RuntimeArg]:
95 """Reorder argument groups to match their order in a format string."""
96 return groups[ARG_POS] + groups[ARG_OPT] + groups[ARG_NAMED_OPT] + groups[ARG_NAMED]
97
98
99def make_static_kwlist(args: list[RuntimeArg]) -> str:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…