MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _wrapper

Function _wrapper

monai/utils/deprecate_utils.py:106–112  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

104
105 @wraps(call_obj)
106 def _wrapper(*args, **kwargs):
107 if is_removed:
108 raise DeprecatedError(msg)
109 if is_deprecated:
110 warn_deprecated(obj, msg, warning_category)
111
112 return call_obj(*args, **kwargs)
113
114 if is_func:
115 return _wrapper

Callers

nothing calls this directly

Calls 3

DeprecatedErrorClass · 0.85
warn_deprecatedFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…