python-trio / flake8-async

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

add asyncio/anyio taskgroup support to async111&112, update contributing.md #241

Closed jakkdl closed 5 months ago

jakkdl commented 5 months ago

Fixes 2/3 tasks in #215

The logic in Visitor112 is incredibly messy and ugly, but works. Might rewrite it after sleeping on it.

I also realized that async112 has not been detecting

async def foo():
    async with trio.open_nursery() as nursery:
        await nursery.start(bar)

and only worked properly on start_soon.

jakkdl commented 5 months ago

oops, forgot to push the 112 stuff