MCPcopy Index your code
hub / github.com/python/cpython / __call__

Method __call__

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

Source from the content-addressed store, hash-verified

1389
1390
1391 def __call__(self, func):
1392 if isinstance(func, type):
1393 return self.decorate_class(func)
1394 if inspect.iscoroutinefunction(func):
1395 return self.decorate_async_callable(func)
1396 return self.decorate_callable(func)
1397
1398
1399 def decorate_class(self, klass):

Callers

nothing calls this directly

Calls 3

decorate_classMethod · 0.95
decorate_callableMethod · 0.95

Tested by

no test coverage detected