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

Method _inner

Lib/unittest/mock.py:1902–1907  ·  view source on GitHub ↗
(*args, **kw)

Source from the content-addressed store, hash-verified

1900 def decorate_callable(self, f):
1901 @wraps(f)
1902 def _inner(*args, **kw):
1903 self._patch_dict()
1904 try:
1905 return f(*args, **kw)
1906 finally:
1907 self._unpatch_dict()
1908
1909 return _inner
1910

Callers

nothing calls this directly

Calls 3

_patch_dictMethod · 0.95
_unpatch_dictMethod · 0.95
fFunction · 0.50

Tested by

no test coverage detected