MCPcopy
hub / github.com/scrapy/scrapy / wrapped

Function wrapped

scrapy/utils/decorators.py:31–36  ·  view source on GitHub ↗
(*args: _P.args, **kwargs: _P.kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

deferred_from_coroFunction · 0.90
run_in_threadFunction · 0.90

Tested by

no test coverage detected