(*args, **kwargs)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected