(*args: _P.args, **kwargs: _P.kwargs)
| 29 | def deco(func: Callable[_P, _T]) -> Callable[_P, _T]: |
| 30 | @wraps(func) |
| 31 | def wrapped(*args: _P.args, **kwargs: _P.kwargs) -> _T: |
| 32 | message = f"Call to deprecated function {func.__name__}." |
| 33 | if use_instead: |
| 34 | message += f" Use {use_instead} instead." |
| 35 | warnings.warn(message, category=ScrapyDeprecationWarning, stacklevel=2) |
| 36 | return func(*args, **kwargs) |
| 37 | |
| 38 | return wrapped |
| 39 |
nothing calls this directly
no test coverage detected