]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-120121: Add InvalidStateError to concurrent.futures.__all__ (GH-120123...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 Jun 2024 16:35:10 +0000 (18:35 +0200)
committerGitHub <noreply@github.com>
Sat, 8 Jun 2024 16:35:10 +0000 (16:35 +0000)
gh-120121: Add InvalidStateError to concurrent.futures.__all__ (GH-120123)
(cherry picked from commit 5d59b870effa0f576acf7264cfcbfca2b36e34e3)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/concurrent/futures/__init__.py
Misc/NEWS.d/next/Library/2024-06-05-16-30-28.gh-issue-120121.9dz8i7.rst [new file with mode: 0644]

index 292e886d5a88ac90b41f998702c5dbf11e44ce9b..72de617a5b6f613f5c5d37b4ddd4f93567312bfb 100644 (file)
@@ -23,6 +23,7 @@ __all__ = (
     'ALL_COMPLETED',
     'CancelledError',
     'TimeoutError',
+    'InvalidStateError',
     'BrokenExecutor',
     'Future',
     'Executor',
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 (file)
index 0000000..4f35264
--- /dev/null
@@ -0,0 +1 @@
+Add :exc:`concurrent.futures.InvalidStateError` to module's ``__all__``.