You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ASYNC102 await-in-finally-or-cancelled false alarms on nurseries #283
So it's not just async with trio.open_nursery() that needs to be checked against.
Both of those cases are definitely less common, but far from unheard of. The former is an easy fix, the latter is a bit more tricky but we're already type-tracking nurseries for other reasons so shouldn't be too bad.
Activity
jakkdl commentedon Sep 10, 2024
The other rules that could be relevant are:
open_nursery/create_task_grouptl;dr, ASYNC100 also needs changing
jakkdl commentedon Sep 11, 2024
Hrm, neither of these statements are cancellation sources
So it's not just
async with trio.open_nursery()that needs to be checked against.Both of those cases are definitely less common, but far from unheard of. The former is an easy fix, the latter is a bit more tricky but we're already type-tracking nurseries for other reasons so shouldn't be too bad.