diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index f4c360f476514..5d53ab0cc41be 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -261,7 +261,7 @@ def deprecate_nonkeyword_arguments( version: str | None, allowed_args: list[str] | None = None, stacklevel: int = 2, -) -> Callable: +) -> Callable[[F], F]: """ Decorator to deprecate a use of non-keyword arguments of a function.