Skip to content

fix: make AsyncUnleashClient a top level import - #442

Merged
ppicom merged 1 commit into
mainfrom
top-level-import
Sep 30, 2026
Merged

ppicom merged 1 commit into
mainfrom
top-level-import

Conversation

@ppicom

@ppicom ppicom commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

While testing the SDK I've found that AsyncUnleashClient is not a top-level export.

With these changes, users should be able to do from UnleashClient import AsyncUnleashClient without issues. And the type checking is there to guarantee that users that are already importing UnleashClient aren't suddenly required to install aiohttp.


Stack created with GitHub Stacks CLI • Give Feedback 💬

That way, users can do "from UnleashClients import AsyncUnleashClient"
like they already do for the sync one.

The shenanigans with typechecking are there so that aiohttp is not
suddenly mandatory for users that are already importing the sync
client.
@ppicom
ppicom merged commit cde60ee into main Sep 30, 2026
9 checks passed
@ppicom
ppicom deleted the top-level-import branch September 30, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants