@@ -4,6 +4,7 @@ from _typeshed import Self
4
4
from abc import abstractmethod
5
5
from collections .abc import Container , Iterable , Iterator , Sequence
6
6
from logging import Logger
7
+ from types import TracebackType
7
8
from typing import Any , Callable , Generic , Protocol , TypeVar , overload
8
9
from typing_extensions import Literal , ParamSpec , SupportsIndex
9
10
@@ -73,7 +74,9 @@ class Executor:
73
74
def shutdown (self , wait : bool = ...) -> None : ...
74
75
75
76
def __enter__ (self : Self ) -> Self : ...
76
- def __exit__ (self , exc_type : Any , exc_val : Any , exc_tb : Any ) -> bool | None : ...
77
+ def __exit__ (
78
+ self , exc_type : type [BaseException ] | None , exc_val : BaseException | None , exc_tb : TracebackType | None
79
+ ) -> bool | None : ...
77
80
78
81
def as_completed (fs : Iterable [Future [_T ]], timeout : float | None = ...) -> Iterator [Future [_T ]]: ...
79
82
@@ -127,4 +130,4 @@ class _AcquireFutures:
127
130
futures : Iterable [Future [Any ]]
128
131
def __init__ (self , futures : Iterable [Future [Any ]]) -> None : ...
129
132
def __enter__ (self ) -> None : ...
130
- def __exit__ (self , * args : Any ) -> None : ...
133
+ def __exit__ (self , * args : object ) -> None : ...
0 commit comments