Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix SIM113 false positive with async for loops #9996

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Fix SIM113 false positive with async for loops #9996

merged 1 commit into from
Feb 16, 2024

Conversation

adrienball
Copy link
Contributor

Summary

Ignore async for loops when checking the SIM113 rule.

Closes #9995

Test Plan

A new test case was added to SIM113.py with an async for loop.

Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@charliermarsh
Copy link
Member

Thank you! Much appreciated.

@charliermarsh charliermarsh added the bug Something isn't working label Feb 16, 2024
@charliermarsh charliermarsh merged commit c3bba54 into astral-sh:main Feb 16, 2024
17 checks passed
nkxxll pushed a commit to nkxxll/ruff that referenced this pull request Mar 10, 2024
## Summary
Ignore `async for` loops when checking the SIM113 rule.

Closes astral-sh#9995 

## Test Plan
A new test case was added to SIM113.py with an async for loop.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIM113 false positive with async for loops
2 participants