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

Function make_arg_groups

mypyc/codegen/emitwrapper.py:89–91  ·  view source on GitHub ↗

Group arguments by kind.

(args: list[RuntimeArg])

Source from the content-addressed store, hash-verified

87
88
89def make_arg_groups(args: list[RuntimeArg]) -> dict[ArgKind, list[RuntimeArg]]:
90 """Group arguments by kind."""
91 return {k: [arg for arg in args if arg.kind == k] for k in ArgKind}
92
93
94def reorder_arg_groups(groups: dict[ArgKind, list[RuntimeArg]]) -> list[RuntimeArg]:

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…