MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / _wrapper

Function _wrapper

test/general/lm_eval/utils.py:236–243  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

234
235 @functools.wraps(fn)
236 def _wrapper(*args, **kwargs):
237 if len(args) != 1 if inspect.ismethod(fn) else 0:
238 print(
239 f"WARNING: using {fn.__name__} with positional arguments is "
240 "deprecated and will be disallowed in a future version of "
241 "lm-evaluation-harness!"
242 )
243 return fn(*args, **kwargs)
244
245 return _wrapper
246

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected