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

Method decorator

Lib/test/test_inspect/test_inspect.py:3377–3381  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

3375 func = _testcapi.docstring_with_signature_with_defaults
3376
3377 def decorator(func):
3378 @functools.wraps(func)
3379 def wrapper(*args, **kwargs) -> int:
3380 return func(*args, **kwargs)
3381 return wrapper
3382
3383 decorated_func = decorator(func)
3384

Callers

nothing calls this directly

Calls 3

signatureMethod · 0.45
valuesMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected