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
B007 unused-loop-control-variable revealed and fixed code like:
- for k, v in self.validation_errors.items(): + for _k, v in self.validation_errors.items(): num += v.number_of_errors()
a new checker could make it even better:
- for k, v in self.validation_errors.items(): + for v in self.validation_errors.values(): num += v.number_of_errors()
The text was updated successfully, but these errors were encountered:
Some classes such as xml.etree.elementtree.Element support items but not values.
xml.etree.elementtree.Element
items
values
Sorry, something went wrong.
It would be an aggressive rule.
This is being implemented as part of perflint (#4789)
perflint
I believe we now support this via PERF102.
PERF102
No branches or pull requests
B007 unused-loop-control-variable revealed and fixed code like:
a new checker could make it even better:
The text was updated successfully, but these errors were encountered: