diff --git a/stubs/Deprecated/@tests/stubtest_allowlist.txt b/stubs/Deprecated/@tests/stubtest_allowlist.txt deleted file mode 100644 index 5aea61c8a..000000000 --- a/stubs/Deprecated/@tests/stubtest_allowlist.txt +++ /dev/null @@ -1,3 +0,0 @@ -deprecated.sphinx.SphinxAdapter.__init__ -deprecated.sphinx.versionadded -deprecated.sphinx.versionchanged diff --git a/stubs/Deprecated/METADATA.toml b/stubs/Deprecated/METADATA.toml index 3d4d518df..5c234dc06 100644 --- a/stubs/Deprecated/METADATA.toml +++ b/stubs/Deprecated/METADATA.toml @@ -1,2 +1,5 @@ version = "1.2.*" requires = [] + +[tool.stubtest] +ignore_missing_stub = false diff --git a/stubs/Deprecated/deprecated/__init__.pyi b/stubs/Deprecated/deprecated/__init__.pyi index 25df24324..c7b200a4e 100644 --- a/stubs/Deprecated/deprecated/__init__.pyi +++ b/stubs/Deprecated/deprecated/__init__.pyi @@ -1 +1,4 @@ from .classic import deprecated as deprecated + +__credits__: str +__date__: str diff --git a/stubs/Deprecated/deprecated/classic.pyi b/stubs/Deprecated/deprecated/classic.pyi index 95704e886..902e64374 100644 --- a/stubs/Deprecated/deprecated/classic.pyi +++ b/stubs/Deprecated/deprecated/classic.pyi @@ -5,6 +5,8 @@ from typing_extensions import Literal, TypeAlias _F = TypeVar("_F", bound=Callable[..., Any]) _Actions: TypeAlias = Literal["default", "error", "ignore", "always", "module", "once"] +string_types: tuple[type, ...] + class ClassicAdapter: reason: str version: str diff --git a/stubs/Deprecated/deprecated/sphinx.pyi b/stubs/Deprecated/deprecated/sphinx.pyi index e840e5225..c9b37eabb 100644 --- a/stubs/Deprecated/deprecated/sphinx.pyi +++ b/stubs/Deprecated/deprecated/sphinx.pyi @@ -19,11 +19,12 @@ class SphinxAdapter(ClassicAdapter): version: str = ..., action: _Actions | None = ..., category: type[Warning] = ..., + line_length: int = ..., ) -> None: ... def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ... -def versionadded(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ... -def versionchanged(reason: str = ..., version: str = ...) -> 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 deprecated( reason: str = ..., version: str = ...,