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

Function num_bitmap_args

mypyc/irbuild/env_class.py:197–203  ·  view source on GitHub ↗
(builder: IRBuilder, args: list[Argument])

Source from the content-addressed store, hash-verified

195
196
197def num_bitmap_args(builder: IRBuilder, args: list[Argument]) -> int:
198 n = 0
199 for arg in args:
200 t = builder.type_to_rtype(arg.variable.type)
201 if t.error_overlap and arg.kind.is_optional():
202 n += 1
203 return (n + (BITMAP_BITS - 1)) // BITMAP_BITS
204
205
206def add_args_to_env(

Callers 1

add_args_to_envFunction · 0.70

Calls 2

type_to_rtypeMethod · 0.45
is_optionalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…