MCPcopy Create free account
hub / github.com/numpy/numpy / __call__

Method __call__

numpy/testing/_private/utils.py:2269–2279  ·  view source on GitHub ↗

Function decorator to apply certain suppressions to a whole function.

(self, func)

Source from the content-addressed store, hash-verified

2267 self._orig_showmsg(use_warnmsg)
2268
2269 def __call__(self, func):
2270 """
2271 Function decorator to apply certain suppressions to a whole
2272 function.
2273 """
2274 @wraps(func)
2275 def new_func(*args, **kwargs):
2276 with self:
2277 return func(*args, **kwargs)
2278
2279 return new_func
2280
2281
2282@contextlib.contextmanager

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected