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

Method patched

Lib/unittest/mock.py:1435–1439  ·  view source on GitHub ↗
(*args, **keywargs)

Source from the content-addressed store, hash-verified

1433
1434 @wraps(func)
1435 def patched(*args, **keywargs):
1436 with self.decoration_helper(patched,
1437 args,
1438 keywargs) as (newargs, newkeywargs):
1439 return func(*newargs, **newkeywargs)
1440
1441 patched.patchings = [self]
1442 return patched

Callers

nothing calls this directly

Calls 2

decoration_helperMethod · 0.95
funcFunction · 0.50

Tested by

no test coverage detected