Skip to content

With decorators containing arguments, argument specifucation is not correctly resolved. #71

@aaltat

Description

@aaltat

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions