diff --git a/stubs/Deprecated/deprecated/sphinx.pyi b/stubs/Deprecated/deprecated/sphinx.pyi index d5ae7e23fe24..e2bb94f4cdd7 100644 --- a/stubs/Deprecated/deprecated/sphinx.pyi +++ b/stubs/Deprecated/deprecated/sphinx.pyi @@ -17,11 +17,17 @@ class SphinxAdapter(ClassicAdapter): reason: str = "", version: str = "", action: _Actions | None = None, - category: type[Warning] = ..., + category: type[Warning] = DeprecationWarning, 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: ... + """ + :param wrapped: Wrapped class or function. + + :param instance: The object to which the wrapped function was bound when it was called. + """ 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]: ...