Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prefer-simple-iterator
2 participants