Allow multiprocessing.pool.ThreadPool.__exit__ to accept None (#7376)

This commit is contained in:
Rebecca Chen
2022-02-23 19:21:25 -08:00
committed by GitHub
parent 6a743348ca
commit da093c395c

View File

@@ -111,7 +111,9 @@ class Pool:
def terminate(self) -> None: ...
def join(self) -> None: ...
def __enter__(self: Self) -> Self: ...
def __exit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> None: ...
def __exit__(
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
) -> None: ...
class ThreadPool(Pool):
def __init__(