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

Function num_positional_args

mypyc/irbuild/ll_builder.py:3038–3045  ·  view source on GitHub ↗
(arg_values: list[Value], arg_kinds: list[ArgKind] | None)

Source from the content-addressed store, hash-verified

3036
3037
3038def num_positional_args(arg_values: list[Value], arg_kinds: list[ArgKind] | None) -> int:
3039 if arg_kinds is None:
3040 return len(arg_values)
3041 num_pos = 0
3042 for kind in arg_kinds:
3043 if kind == ARG_POS:
3044 num_pos += 1
3045 return num_pos
3046
3047
3048class ForBuilder:

Callers 2

_py_vector_callMethod · 0.85

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…