Skip to content

Commit d6cad72

Browse files
authored
Clean up docstring in sphinx.pyi
Removed unused docstring parameters from the deprecation function.
1 parent d86b288 commit d6cad72

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

stubs/Deprecated/deprecated/sphinx.pyi

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,12 @@ class SphinxAdapter(ClassicAdapter):
1717
reason: str = "",
1818
version: str = "",
1919
action: _Actions | None = None,
20-
category: type[Warning] = DeprecationWarning,
20+
category: type[Warning] = DeprecationWarning, # noqa: Y011
2121
extra_stacklevel: int = 0,
2222
line_length: int = 70,
2323
) -> None: ...
2424
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
2525
def get_deprecated_msg(self, wrapped: Any, instance: Any) -> str: ...
26-
"""
27-
:param wrapped: Wrapped class or function.
28-
29-
:param instance: The object to which the wrapped function was bound when it was called.
30-
"""
3126

3227
def versionadded(reason: str = "", version: str = "", line_length: int = 70) -> Callable[[_F], _F]: ...
3328
def versionchanged(reason: str = "", version: str = "", line_length: int = 70) -> Callable[[_F], _F]: ...

0 commit comments

Comments
 (0)