mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
[Deprecated]: fix missing extra_stacklevel kwarg for deprecated() (#13573)
This commit is contained in:
@@ -27,5 +27,10 @@ class ClassicAdapter:
|
||||
def deprecated(wrapped: _F, /) -> _F: ...
|
||||
@overload
|
||||
def deprecated(
|
||||
reason: str = ..., *, version: str = ..., action: _Actions | None = ..., category: type[Warning] | None = ...
|
||||
reason: str = ...,
|
||||
*,
|
||||
version: str = ...,
|
||||
action: _Actions | None = ...,
|
||||
category: type[Warning] | None = ...,
|
||||
extra_stacklevel: int = 0,
|
||||
) -> Callable[[_F], _F]: ...
|
||||
|
||||
@@ -32,4 +32,5 @@ def deprecated(
|
||||
*,
|
||||
action: _Actions | None = ...,
|
||||
category: type[Warning] | None = ...,
|
||||
extra_stacklevel: int = 0,
|
||||
) -> Callable[[_F], _F]: ...
|
||||
|
||||
Reference in New Issue
Block a user