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

Function decorating_function

Lib/functools.py:593–596  ·  view source on GitHub ↗
(user_function)

Source from the content-addressed store, hash-verified

591 'Expected first argument to be an integer, a callable, or None')
592
593 def decorating_function(user_function):
594 wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo)
595 wrapper.cache_parameters = lambda : {'maxsize': maxsize, 'typed': typed}
596 return update_wrapper(wrapper, user_function)
597
598 return decorating_function
599

Callers

nothing calls this directly

Calls 2

_lru_cache_wrapperFunction · 0.85
update_wrapperFunction · 0.85

Tested by

no test coverage detected