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

Method __call__

tools/npy_tempita/__init__.py:530–539  ·  view source on GitHub ↗
(self, *args, **kw)

Source from the content-addressed store, hash-verified

528 return self()
529
530 def __call__(self, *args, **kw):
531 values = self._parse_signature(args, kw)
532 ns = self._ns.copy()
533 ns.update(values)
534 if self._bound_self is not None:
535 ns['self'] = self._bound_self
536 out = []
537 subdefs = {}
538 self._template._interpret_codes(self._body, ns, out, subdefs)
539 return ''.join(out)
540
541 def __get__(self, obj, type=None):
542 if obj is None:

Callers

nothing calls this directly

Calls 5

_parse_signatureMethod · 0.95
updateMethod · 0.80
_interpret_codesMethod · 0.80
copyMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected