Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Assignees
Milestone
@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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    AltStyle によって変換されたページ (->オリジナル) /