MCPcopy Index your code
hub / github.com/numpy/numpy / wrapper

Function wrapper

numpy/_core/arrayprint.py:589–597  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

587
588 @functools.wraps(f)
589 def wrapper(self, *args, **kwargs):
590 key = id(self), get_ident()
591 if key in repr_running:
592 return fillvalue
593 repr_running.add(key)
594 try:
595 return f(self, *args, **kwargs)
596 finally:
597 repr_running.discard(key)
598
599 return wrapper
600

Callers

nothing calls this directly

Calls 2

fFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…