-
-
Notifications
You must be signed in to change notification settings - Fork 74
🐛 Fix Python3.11+ raises ModuleNotFoundError: No module named typing_extensions
#214
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
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
@tiangolo How to add a label? |
This bug affects v0.0.8 (the latest version) only. |
This is still a persistent issue for Python 3.11+. This should be merged and released, as any packages using this that support 3.11 have to explicitly block v0.0.8 from dependency mapping. |
📝 Docs previewLast commit 8affc12 at: https://cc31b8f4.asyncer.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @waketzheng, thanks for the report and apologies for the late follow-up!
I think this issue has been partly remedied by agronholm/anyio#824 (v4.7.0 released 5 dec 2024) where they explicitely install typing_extensions
for Python < 3.13.
Nevertheless, I agree it makes sense to ensure this is internally consistent within asyncer
itself as well, and we should only call typing_extensions
for those Python versions for which we explicitely install it.
How to reproduce:
BTW: I changed
anyio.sleep(0)
toanyio.lowlevel.checkpoint
asruff check --extend-select=ASYNC
suggested. And remove the filepoetry.toml
as no longer need it.