]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120121: Add InvalidStateError to concurrent.futures.__all__ (#120123)
authorAN Long <aisk@users.noreply.github.com>
Sat, 8 Jun 2024 16:11:19 +0000 (00:11 +0800)
committerGitHub <noreply@github.com>
Sat, 8 Jun 2024 16:11:19 +0000 (21:41 +0530)
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__``.