-
-
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
Fix false-positive with contextmanager missing cleanup #9654
Fix false-positive with contextmanager missing cleanup #9654
Conversation
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #9654 +/- ##
=======================================
Coverage 95.84% 95.84%
=======================================
Files 174 174
Lines 18896 18915 +19
=======================================
+ Hits 18110 18129 +19
Misses 786 786
|
This comment has been minimized.
This comment has been minimized.
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.
We might want to document the known false positives from #9625 (comment) in dΓ©tails.rst ?
Done. I've also updated the error node to use the |
814d0d4
to
509eb93
Compare
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.
LGTM
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 509eb93 |
(cherry picked from commit 5a01bc1)
Type of Changes
Description
An attempt at fixing the false-positives with the
contextmanager-generator-missing-cleanup
check where no cleanup happens after a singular yield.Closes #9625