MCPcopy Create free account
hub / github.com/catboost/catboost / wrapper

Function wrapper

library/python/pytest/yatest_tools.py:143–152  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

141
142 @functools.wraps(func)
143 def wrapper(*args):
144 # Disabling caching in test mode
145 if config.is_test_mode():
146 return func(*args)
147
148 try:
149 return memory[args]
150 except KeyError:
151 memory[args] = func(*args)
152 return memory[args]
153
154 return wrapper
155

Callers

nothing calls this directly

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected