Skip to content

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.

@github-actions
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
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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