Skip to content

Commit e050557

Browse files
committed
[API-Compat] Updated ForbidKeywordsDecorator
1 parent dcc860f commit e050557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/utils/decorator_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def process(
9191
return args, processed_kwargs
9292

9393

94-
class ForbidKeywordsDecorator(DecoratorBase[_P, _R]):
94+
class ForbidKeywordsDecorator(DecoratorBase):
9595
"""A decorator that hints users to use the correct `compat` functions, when erroneous keyword arguments are detected"""
9696

9797
def __init__(
98-
self, illegal_keys: list[str] | str, func_name: str, correct_name: str
98+
self, illegal_keys: list[str], func_name: str, correct_name: str
9999
) -> None:
100100
super().__init__()
101101
self.illegal_keys = (

0 commit comments

Comments
 (0)