Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*args and **kwargs are reported as unused even if added to ignored-argument-names #2214

Closed
karyon opened this issue Jun 22, 2018 · 1 comment
Assignees
Labels

Comments

@karyon
Copy link

karyon commented Jun 22, 2018

Steps to reproduce

given this function:

def frob(arg, *args, **kwargs):
    pass

and this setting

ignored-argument-names=arg|args|kwargs

pylint will report

unused-argument / Unused argument 'args'
unused-argument / Unused argument 'kwargs'

which i wouldn't expect. weirdly, adding them to dummy-variables-rgx actually silences the warning.

using pylint 1.9.2

@brycepg brycepg self-assigned this Jun 30, 2018
@brycepg brycepg marked this as a duplicate of #1992 Jul 1, 2018
@brycepg brycepg closed this as completed Jul 1, 2018
@brycepg brycepg reopened this Jul 1, 2018
@brycepg brycepg marked this as not a duplicate of #1992 Jul 1, 2018
@brycepg
Copy link
Contributor

brycepg commented Jul 1, 2018

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants