We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DeprecatedParams.__init__
1 parent dfdfb1a commit db9c181Copy full SHA for db9c181
1 file changed
stubs/Deprecated/deprecated/params.pyi
@@ -8,7 +8,9 @@ _R = TypeVar("_R")
8
class DeprecatedParams:
9
messages: dict[str, str]
10
category: type[Warning]
11
- def __init__(self, param: str | dict[str, str], reason: str = "", category: type[Warning] = ...) -> None: ...
+ def __init__(
12
+ self, param: str | dict[str, str], reason: str = "", category: type[Warning] = DeprecationWarning # noqa: Y011
13
+ ) -> None: ...
14
def populate_messages(self, param: str | dict[str, str], reason: str = "") -> None: ...
15
def check_params(
16
self, signature: Signature, *args: Any, **kwargs: Any # args and kwargs passing to Signature.bind method
0 commit comments