Skip to content

Commit 605ce0a

Browse files
committed
Simplify future types
1 parent 7fbc4f4 commit 605ce0a

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

adaptive/runner.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
if TYPE_CHECKING:
3737
import distributed
3838
import ipyparallel
39-
import ipyparallel.client.asyncresult
4039
import mpi4py.futures
4140

4241
ExecutorTypes: TypeAlias = (
@@ -50,12 +49,7 @@
5049
| ipyparallel.Client
5150
| ipyparallel.client.view.ViewExecutor
5251
)
53-
FutureTypes: TypeAlias = (
54-
concurrent.Future
55-
| asyncio.Future
56-
| asyncio.Task
57-
| ipyparallel.client.asyncresult.AsyncResult
58-
)
52+
FutureTypes: TypeAlias = concurrent.Future | asyncio.Future
5953

6054

6155
with suppress(ModuleNotFoundError):

0 commit comments

Comments
 (0)