Skip to content

Commit 6f3437a

Browse files
committed
Remove unused variable
1 parent 2a77ca2 commit 6f3437a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

adaptive/runner.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import warnings
1515
from contextlib import suppress
1616
from datetime import datetime, timedelta
17-
from typing import Any, Callable, Union
17+
from typing import Any, Callable
1818

1919
import loky
2020

@@ -27,12 +27,6 @@
2727
)
2828
from adaptive.notebook_integration import in_ipynb, live_info, live_plot
2929

30-
try:
31-
from typing import TypeAlias
32-
except ImportError:
33-
# Python <3.10
34-
from typing_extensions import TypeAlias
35-
3630
try:
3731
import ipyparallel
3832

@@ -72,10 +66,6 @@
7266
# and https://github.com/python-adaptive/adaptive/issues/301
7367
_default_executor = loky.get_reusable_executor
7468

75-
_GoalTypes: TypeAlias = Union[
76-
Callable[[BaseLearner], bool], int, float, datetime, timedelta, None
77-
]
78-
7969

8070
class BaseRunner(metaclass=abc.ABCMeta):
8171
r"""Base class for runners that use `concurrent.futures.Executors`.

0 commit comments

Comments
 (0)