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

Method __call__

Lib/unittest/mock.py:1384–1389  ·  view source on GitHub ↗
(self, func)

Source from the content-addressed store, hash-verified

1382
1383
1384 def __call__(self, func):
1385 if isinstance(func, type):
1386 return self.decorate_class(func)
1387 if inspect.iscoroutinefunction(func):
1388 return self.decorate_async_callable(func)
1389 return self.decorate_callable(func)
1390
1391
1392 def decorate_class(self, klass):

Callers

nothing calls this directly

Calls 4

decorate_classMethod · 0.95
decorate_callableMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected