MCPcopy Index your code
hub / github.com/RustPython/RustPython / __call__

Method __call__

Lib/functools.py:1063–1069  ·  view source on GitHub ↗
(self, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

1061 return f'<single dispatch method {name}>'
1062
1063 def __call__(self, /, *args, **kwargs):
1064 if not args:
1065 funcname = getattr(self._unbound.func, '__name__',
1066 'singledispatchmethod method')
1067 raise TypeError(f'{funcname} requires at least '
1068 '1 positional argument')
1069 return self._dispatch(args[0].__class__).__get__(self._obj, self._cls)(*args, **kwargs)
1070
1071 def __getattr__(self, name):
1072 # Resolve these attributes lazily to speed up creation of

Callers

nothing calls this directly

Calls 3

getattrFunction · 0.85
__get__Method · 0.45
_dispatchMethod · 0.45

Tested by

no test coverage detected