diff --git a/stubs/Deprecated/deprecated/sphinx.pyi b/stubs/Deprecated/deprecated/sphinx.pyi index d5ae7e23fe24..ec3d4ad5f589 100644 --- a/stubs/Deprecated/deprecated/sphinx.pyi +++ b/stubs/Deprecated/deprecated/sphinx.pyi @@ -17,11 +17,12 @@ class SphinxAdapter(ClassicAdapter): reason: str = "", version: str = "", action: _Actions | None = None, - category: type[Warning] = ..., + category: type[Warning] = DeprecationWarning, # noqa: Y011 extra_stacklevel: int = 0, line_length: int = 70, ) -> None: ... def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ... + def get_deprecated_msg(self, wrapped: Any, instance: Any) -> str: ... 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]: ...