From dc35623884dbf57d5bb287420ca7d680cd34e52e Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Fri, 21 May 2021 20:57:06 +0100 Subject: [PATCH] type deprecate_nonkeyword_arguments --- pandas/util/_decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.