You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asyncio.__init__ does not include asyncio.taskgroups in its __all__ #106075
I'm not sure if I should file this as a bug or a feature...I just noticed it in a discussion, and thought I'd raise the issue. It's possible this is intended behavior.
asyncio.__init__ imports everything from all of its submodules and puts almost everything into __all__, I assume so people can from asyncio import *. It looks like asyncio.taskgroups was omitted from this, I am guessing by accident (the lists are not in the same order).
I guess people usually don't use that pattern, or not enough have done so and found the last of TaskGroup annoying, so it went under the radar. But very easy to fix, happy to open a PR if desired.
Activity
gvanrossum commentedon Jun 25, 2023
Yeah, I think you're right. Feel free to send a PR. Please make sure it also includes a minor docs note. We can backport this to 3.12.
gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (#10…
pythongh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (
[3.12] gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all_…
AlexWaygood commentedon Jun 26, 2023
Looks like this is now fixed! 🎉