Closed jakkdl closed 3 months ago
Very quick notes:
except
clause tooawait x.aclose(foo)
and then I think we're ready and it'll close the linked issue.
don't exempt asyncio-only code; this is a trio/anyio semantics thing
I interpreted this as "if running with --anyio and not importing anyio/trio, or only importing asyncio => don't mark as safe; but if running with --anyio and/or importing anyio/trio and importing asyncio => mark as safe", so if you have a mixed project it'll lean towards not reporting aclose
s. But I could make it more aggressive and warn if there's any risk that this part concerns asyncio-code (i.e. asyncio in self.library
-> "running with --asyncio; or asyncio is imported")
See #156
I'm not sure if #156 also covers more general discussion on if/how to overhaul async102 and should remain open after this is merged.