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

Function wrapper

library/python/func/__init__.py:28–38  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

26
27 @functools.wraps(func)
28 def wrapper(*args, **kwargs):
29 try:
30 return result.result
31 except AttributeError:
32 with lock:
33 try:
34 return result.result
35 except AttributeError:
36 result.result = func(*args, **kwargs)
37
38 return result.result
39
40 return wrapper
41

Callers 2

AllOfImplFunction · 0.50
AnyOfImplFunction · 0.50

Calls 2

funcFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected