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

Function step_size

mypyc/irbuild/vec.py:197–203  ·  view source on GitHub ↗
(item_type: RType)

Source from the content-addressed store, hash-verified

195
196
197def step_size(item_type: RType) -> int:
198 if isinstance(item_type, RPrimitive):
199 return item_type.size
200 elif isinstance(item_type, RVec):
201 return PLATFORM_SIZE * 2
202 else:
203 return PLATFORM_SIZE
204
205
206VEC_TYPE_INFO_I64: Final = 2

Callers 3

vec_create_initializedFunction · 0.85
vec_create_from_valuesFunction · 0.85
vec_containsFunction · 0.85

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…