MCPcopy Index your code
hub / github.com/python/cpython / array_or_scalar

Function array_or_scalar

Tools/cases_generator/stack.py:215–216  ·  view source on GitHub ↗
(var: StackItem | Local)

Source from the content-addressed store, hash-verified

213 pass
214
215def array_or_scalar(var: StackItem | Local) -> str:
216 return "array" if var.is_array() else "scalar"
217
218class Stack:
219 def __init__(self, check_stack_bounds: bool = False) -> None:

Callers

nothing calls this directly

Calls 1

is_arrayMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…