-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[flake8-async
] Update ASYNC109
to match upstream
#12236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. This looks good to me.
The only change is that I think we should gate this behind preview-mode because it increases the scope of a non-preview rule.
Would you mind to extend the PR summary with a short explanation of what "match upstream" means (support anyio and asyncio). The person who has to write the changelog and people navigating to the PR from the changelog might find that helpful.
Ok I restricted the rule to trio only unless preview is enabled |
I expanded the PR summary to make things a little clearer. |
Summary
Update the name of
ASYNC109
to match upstream.Also update to the functionality to match upstream by supporting additional context managers from
asyncio
andanyio
. This doesn't change any of the detection functionality, but recommends additional context managers fromasyncio
andanyio
depending on context.Part of #12039.
Test Plan
Added fixture for asyncio recommendation