From e64efb0cc4e97a2c2b107bd8f4775ca24e4d80f8 Mon Sep 17 00:00:00 2001 From: AN Long Date: Thu, 6 Jun 2024 00:18:48 +0800 Subject: [PATCH 1/6] Add InvalidStateError to concurrent.futures.__all__ --- Lib/concurrent/futures/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/concurrent/futures/__init__.py b/Lib/concurrent/futures/__init__.py index 292e886d5a88ac..72de617a5b6f61 100644 --- a/Lib/concurrent/futures/__init__.py +++ b/Lib/concurrent/futures/__init__.py @@ -23,6 +23,7 @@ 'ALL_COMPLETED', 'CancelledError', 'TimeoutError', + 'InvalidStateError', 'BrokenExecutor', 'Future', 'Executor', From fcf026d5dc7675e70c41823fe863de15900ea4ac Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:30:34 +0000 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst diff --git a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst new file mode 100644 index 00000000000000..1eee071cc71643 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst @@ -0,0 +1 @@ +Add :exec:`InvalidStateError` to `concurrent.futures.__all__` for export in star imports. From 3aa57da1c2d443c811a797d446aa9a0e28075713 Mon Sep 17 00:00:00 2001 From: AN Long Date: Thu, 6 Jun 2024 00:35:52 +0800 Subject: [PATCH 3/6] Fix doc markers --- .../next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst index 1eee071cc71643..cc73129dfdfe95 100644 --- a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst +++ b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst @@ -1 +1 @@ -Add :exec:`InvalidStateError` to `concurrent.futures.__all__` for export in star imports. +Add :exec:`InvalidStateError` to ``concurrent.futures.__all__`` for export in star imports. From 1677225eee82b55b1feebe71a386fa97e2909a5f Mon Sep 17 00:00:00 2001 From: AN Long Date: Thu, 6 Jun 2024 00:43:02 +0800 Subject: [PATCH 4/6] fix marker --- .../next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst index cc73129dfdfe95..a1c567fa2114b2 100644 --- a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst +++ b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst @@ -1 +1 @@ -Add :exec:`InvalidStateError` to ``concurrent.futures.__all__`` for export in star imports. +Add :exc:`InvalidStateError` to ``concurrent.futures.__all__`` for export in star imports. From e383f16124c28b34851f8861780174c862b052cc Mon Sep 17 00:00:00 2001 From: AN Long Date: Thu, 6 Jun 2024 00:51:13 +0800 Subject: [PATCH 5/6] fix docs --- .../next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst index a1c567fa2114b2..edd4a0cbcee1c8 100644 --- a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst +++ b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst @@ -1 +1 @@ -Add :exc:`InvalidStateError` to ``concurrent.futures.__all__`` for export in star imports. +Add :exc:`!InvalidStateError` to ``concurrent.futures.__all__`` for export in star imports. From 25792fe242ff89c44b27fa088adfd1158b3f0bcb Mon Sep 17 00:00:00 2001 From: AN Long Date: Thu, 6 Jun 2024 11:10:08 +0800 Subject: [PATCH 6/6] Update Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst Co-authored-by: Nikita Sobolev --- .../next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst index edd4a0cbcee1c8..4f3526477c8cce 100644 --- a/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst +++ b/Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst @@ -1 +1 @@ -Add :exc:`!InvalidStateError` to ``concurrent.futures.__all__`` for export in star imports. +Add :exc:`concurrent.futures.InvalidStateError` to module's ``__all__``.