Reorder argument groups to match their order in a format string.
(groups: dict[ArgKind, list[RuntimeArg]])
| 92 | |
| 93 | |
| 94 | def 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 | |
| 99 | def make_static_kwlist(args: list[RuntimeArg]) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…