python-trio / flake8-async

Highly opinionated linter for Trio code
https://flake8-async.readthedocs.io
MIT License
17 stars 2 forks source link

[anyio/asyncio].TaskGroup support for 101, 111, 112 #215

Closed jakkdl closed 1 month ago

jakkdl commented 4 months ago

These tests are currently hardcoded to check for nurseries, but should be extended to also check anyio taskgroups. The same errors are likely relevant for asyncio as well, so can extend to asyncio taskgroups too.

Errors in question are:

jakkdl commented 4 months ago

It's possible there are other checks where I've missed the nursery/taskgroup distinction, I'll make a pass to check for any other that seem to only handle nurseries when writing PR for the above.