-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
@aaltat
Description
If library is using decorator which takes in arguments, the arguments are not correctly resolved. Example if there is this decorator:
def _my_deco(old_args: Tuple[str, str], new_args: Tuple[str, str]):
def actual_decorator(method):
@wraps(method)
def wrapper(*args, **kwargs):
for index, old_arg in enumerate(old_args):
logger.warn(
f"{old_arg} has deprecated, use {new_args[index]}",
)
return method(*args, **kwargs)
return wrapper
return actual_decorator
Then then in that vase arguments are not correctly resolved.