Skip to content

Conversation

@acroca
Copy link
Member

@acroca acroca commented Nov 6, 2025

This PR introduces anyio to reduce duplication between the clients. The sync client is now just a wrapper, using the async client behind the scenes.

I kept all the functions explicitly defined in the sync client so the code editors can show the tips to users. We could generate those functions dynamically and create a .pyi file, but I think it's manageable and simpler to duplicate them.

Opening as draft to get feedback on this approach.

@filintod
Copy link

filintod commented Nov 6, 2025

nice effort and in general people use asyncio code so better to optimize for that path, and slowly consolidate

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 this pull request may close these issues.

2 participants