[Python-checkins] [3.12] gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (GH-106090) (#106098)
kumaraditya303
webhook-mailer at python.org
Mon Jun 26 08:26:19 EDT 2023
https://github.com/python/cpython/commit/8d5d60f72da9a9a150e24ccf75029d85cf4e4fc0
commit: 8d5d60f72da9a9a150e24ccf75029d85cf4e4fc0
branch: 3.12
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-06-26T12:26:15Z
summary:
[3.12] gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (GH-106090) (#106098)
gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (GH-106090)
(cherry picked from commit a12e8ffb49e05a1d1874389318911ce9685db232)
Co-authored-by: James Webber <jamestwebber at users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303 at users.noreply.github.com>
files:
A Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst
M Lib/asyncio/__init__.py
M Lib/asyncio/taskgroups.py
M Misc/ACKS
diff --git a/Lib/asyncio/__init__.py b/Lib/asyncio/__init__.py
index fed16ec7c67fa..03165a425eb7d 100644
--- a/Lib/asyncio/__init__.py
+++ b/Lib/asyncio/__init__.py
@@ -34,6 +34,7 @@
streams.__all__ +
subprocess.__all__ +
tasks.__all__ +
+ taskgroups.__all__ +
threads.__all__ +
timeouts.__all__ +
transports.__all__)
diff --git a/Lib/asyncio/taskgroups.py b/Lib/asyncio/taskgroups.py
index 06b2e0db86a1f..930da53d908e3 100644
--- a/Lib/asyncio/taskgroups.py
+++ b/Lib/asyncio/taskgroups.py
@@ -2,7 +2,7 @@
# license: PSFL.
-__all__ = ["TaskGroup"]
+__all__ = ("TaskGroup",)
from . import events
from . import exceptions
diff --git a/Misc/ACKS b/Misc/ACKS
index be8755637ffa3..454b63155f013 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1946,6 +1946,7 @@ Colin Watson
David Watson
Aaron Watters
Alex Waygood
+James Webber
Russel Webber
Henrik Weber
Leon Weber
diff --git a/Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst b/Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst
new file mode 100644
index 0000000000000..d2687154a5859
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst
@@ -0,0 +1 @@
+Added `asyncio.taskgroups.__all__` to `asyncio.__all__` for export in star imports.
More information about the Python-checkins
mailing list