multiprocessing.pool: fix constants (#4938)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2021-01-17 17:07:59 -08:00
committed by GitHub
parent 9412c49f97
commit 8a46859e0b

View File

@@ -79,6 +79,12 @@ class ThreadPool(Pool, ContextManager[ThreadPool]):
) -> None: ...
# undocumented
RUN: int
CLOSE: int
TERMINATE: int
if sys.version_info >= (3, 8):
INIT: str
RUN: str
CLOSE: str
TERMINATE: str
else:
RUN: int
CLOSE: int
TERMINATE: int