MCPcopy Create free account
hub / github.com/python/mypy / num_bitmap_args

Function num_bitmap_args

mypyc/ir/func_ir.py:125–130  ·  view source on GitHub ↗
(args: tuple[RuntimeArg, ...])

Source from the content-addressed store, hash-verified

123
124
125def num_bitmap_args(args: tuple[RuntimeArg, ...]) -> int:
126 n = 0
127 for arg in args:
128 if arg.type.error_overlap and arg.kind.is_optional():
129 n += 1
130 return (n + (BITMAP_BITS - 1)) // BITMAP_BITS
131
132
133FUNC_NORMAL: Final = 0

Callers 1

__init__Method · 0.70

Calls 1

is_optionalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…