mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-17 13:59:45 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -19,7 +19,7 @@ class ClassicAdapter:
|
||||
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
|
||||
|
||||
@overload
|
||||
def deprecated(__wrapped: _F) -> _F: ...
|
||||
def deprecated(wrapped: _F, /) -> _F: ...
|
||||
@overload
|
||||
def deprecated(
|
||||
reason: str = ..., *, version: str = ..., action: _Actions | None = ..., category: type[Warning] | None = ...
|
||||
|
||||
Reference in New Issue
Block a user