From 0253d1ed1eab0359aec0fbc0d16b02b6c07383d4 Mon Sep 17 00:00:00 2001 From: "Mr.Hoseini" Date: Fri, 15 May 2026 12:43:33 +0330 Subject: [PATCH] Set default category to DeprecationWarning in DeprecatedParams --- stubs/Deprecated/deprecated/params.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Deprecated/deprecated/params.pyi b/stubs/Deprecated/deprecated/params.pyi index a15f07482bd5..ded386f89183 100644 --- a/stubs/Deprecated/deprecated/params.pyi +++ b/stubs/Deprecated/deprecated/params.pyi @@ -8,7 +8,7 @@ _R = TypeVar("_R") class DeprecatedParams: messages: dict[str, str] category: type[Warning] - def __init__(self, param: str | dict[str, str], reason: str = "", category: type[Warning] = ...) -> None: ... + def __init__(self, param: str | dict[str, str], reason: str = "", category: type[Warning] = DeprecationWarning) -> None: ... def populate_messages(self, param: str | dict[str, str], reason: str = "") -> None: ... def check_params( self, signature: Signature, *args: Any, **kwargs: Any # args and kwargs passing to Signature.bind method