(*args, **kwargs)
| 279 | |
| 280 | @functools.wraps(fn) |
| 281 | def _wrapper(*args, **kwargs): |
| 282 | if len(args) != 1 if inspect.ismethod(fn) else 0: |
| 283 | print( |
| 284 | f"WARNING: using {fn.__name__} with positional arguments is " |
| 285 | "deprecated and will be disallowed in a future version of " |
| 286 | "lm-evaluation-harness!" |
| 287 | ) |
| 288 | return fn(*args, **kwargs) |
| 289 | |
| 290 | return _wrapper |
| 291 |
nothing calls this directly
no outgoing calls
no test coverage detected