mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Allow multiprocessing.pool.ThreadPool.__exit__ to accept None (#7376)
This commit is contained in:
@@ -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__(
|
||||
|
||||
Reference in New Issue
Block a user