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

add rule prefer-simpler-iterator #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chdsbd
Copy link
Collaborator

@chdsbd chdsbd commented Jun 14, 2021

fixes #87


def get_used_var(vars: Iterable[ast.Name]) -> UsedVarRes | None:
for idx, var in enumerate(vars):
if not var.id.startswith("_"):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do proper usage tracking to avoid false positives

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


from flake8_pie.base import Error

KNOWN_FUNCTIONS = {"items"}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused?

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

Successfully merging this pull request may close these issues.

prefer-simple-iterator
2 participants