Skip to content
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

Support checking anyio code too #61

Closed
Zac-HD opened this issue Nov 23, 2022 · 0 comments · Fixed by #120
Closed

Support checking anyio code too #61

Zac-HD opened this issue Nov 23, 2022 · 0 comments · Fixed by #120
Assignees

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Nov 23, 2022

anyio is a compatibility layer on top of asyncio or Trio, allowing you to support trio-like structured concurrency using either. In practice, this means that most Trio-supporting libraries have a free way to support asyncio too, and I expect it'll be more generally helpful for the asyncio ecosystem as TaskGroups become more popular over the coming years.

Since almost all of flake8-trio's checks are actually about structured concurrency rather than being truly library-specific, and anyio matches the trio API quite closely, it would be relatively easy to add support for anyio. There are a couple of small divergences, but I think it would mostly be a matter of checking twice as many names.

@Zac-HD Zac-HD changed the title Idea: support checking anyio code too Support checking anyio code too Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants