Skip to content

Commit 0253d1e

Browse files
authored
Set default category to DeprecationWarning in DeprecatedParams
1 parent 098f30e commit 0253d1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stubs/Deprecated/deprecated/params.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _R = TypeVar("_R")
88
class DeprecatedParams:
99
messages: dict[str, str]
1010
category: type[Warning]
11-
def __init__(self, param: str | dict[str, str], reason: str = "", category: type[Warning] = ...) -> None: ...
11+
def __init__(self, param: str | dict[str, str], reason: str = "", category: type[Warning] = DeprecationWarning) -> None: ...
1212
def populate_messages(self, param: str | dict[str, str], reason: str = "") -> None: ...
1313
def check_params(
1414
self, signature: Signature, *args: Any, **kwargs: Any # args and kwargs passing to Signature.bind method

0 commit comments

Comments
 (0)