mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 14:31:59 +08:00
Add defaults for third-party stubs A-D (#9952)
This commit is contained in:
@@ -13,7 +13,7 @@ class ClassicAdapter:
|
||||
action: _Actions | None
|
||||
category: type[Warning]
|
||||
def __init__(
|
||||
self, reason: str = ..., version: str = ..., action: _Actions | None = ..., category: type[Warning] = ...
|
||||
self, reason: str = "", version: str = "", action: _Actions | None = None, category: type[Warning] = ...
|
||||
) -> None: ...
|
||||
def get_deprecated_msg(self, wrapped: Callable[..., Any], instance: object) -> str: ...
|
||||
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
|
||||
|
||||
@@ -15,20 +15,20 @@ class SphinxAdapter(ClassicAdapter):
|
||||
def __init__(
|
||||
self,
|
||||
directive: Literal["versionadded", "versionchanged", "deprecated"],
|
||||
reason: str = ...,
|
||||
version: str = ...,
|
||||
action: _Actions | None = ...,
|
||||
reason: str = "",
|
||||
version: str = "",
|
||||
action: _Actions | None = None,
|
||||
category: type[Warning] = ...,
|
||||
line_length: int = ...,
|
||||
line_length: int = 70,
|
||||
) -> None: ...
|
||||
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
|
||||
|
||||
def versionadded(reason: str = ..., version: str = ..., line_length: int = ...) -> Callable[[_F], _F]: ...
|
||||
def versionchanged(reason: str = ..., version: str = ..., line_length: int = ...) -> Callable[[_F], _F]: ...
|
||||
def versionadded(reason: str = "", version: str = "", line_length: int = 70) -> Callable[[_F], _F]: ...
|
||||
def versionchanged(reason: str = "", version: str = "", line_length: int = 70) -> Callable[[_F], _F]: ...
|
||||
def deprecated(
|
||||
reason: str = ...,
|
||||
version: str = ...,
|
||||
line_length: int = ...,
|
||||
reason: str = "",
|
||||
version: str = "",
|
||||
line_length: int = 70,
|
||||
*,
|
||||
action: _Actions | None = ...,
|
||||
category: type[Warning] | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user