We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
locals()
ARG002 Unused method argument: bar
bar
def foo(bar: str): print(locals())
The text was updated successfully, but these errors were encountered:
I guess PyCharm doesn't consider these unused either, so we'll remove.
Sorry, something went wrong.
Avoid unused argument rules when functions call locals() (#6578)
17e7eae
Closes #6576.
pyCharm works correct with this case:
1st bar is black, cause used by locals() 2nd bar is gray, cause unused
Hi @charliermarsh
Is it possible to make this an option in that
I am running into this as I often have an idiom
def foo(a, b, c): print_or_logging(locals()) return a + b
But now I've missed the fact that c is in fact, unused.
c
charliermarsh
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: