mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-14 18:27:51 +08:00
Allow multiprocessing.pool.ThreadPool.__exit__ to accept None (#7376)
This commit is contained in:
1 parent
6a743348ca
commit
da093c395c
1 file changed
+3
-1
@@ -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