Skip to content

Commit 279c6cb

Browse files
Remove obsolete comment
Co-authored-by: Jacob Tomlinson <[email protected]>
1 parent dde1794 commit 279c6cb

File tree

9 files changed

+4
-13
lines changed

9 files changed

+4
-13
lines changed

distributed/active_memory_manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ class Suggestion(NamedTuple):
436436

437437

438438
if TYPE_CHECKING:
439-
# TODO import from typing (requires Python >=3.10)
440439
from typing import TypeAlias
441440

442441
SuggestionGenerator: TypeAlias = Generator[

distributed/protocol/compression.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from distributed.utils import ensure_memoryview, nbytes
2323

2424
if TYPE_CHECKING:
25-
# TODO import from typing (requires Python >=3.10)
2625
from typing import TypeAlias
2726

2827
# TODO remove quotes (requires Python >=3.10)

distributed/scheduler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,9 @@
146146
from distributed.variable import VariableExtension
147147

148148
if TYPE_CHECKING:
149-
# TODO import from typing (requires Python >=3.10)
150-
# TODO import from typing (requires Python >=3.11)
151149
from typing import TypeAlias, TypeVar
152150

151+
# TODO import from typing (requires Python >=3.11)
153152
from typing_extensions import Self
154153

155154
from dask._expr import Expr

distributed/shuffle/_core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
from distributed.utils_comm import retry
4949

5050
if TYPE_CHECKING:
51-
# TODO import from typing (requires Python >=3.10)
5251
from typing import TypeAlias
5352

5453
from typing_extensions import ParamSpec

distributed/shuffle/_merge.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from distributed.shuffle._shuffle import shuffle_transfer
1111

1212
if TYPE_CHECKING:
13-
# TODO import from typing (requires Python >=3.10)
1413
from typing import TypeAlias
1514

1615
import pandas as pd

distributed/shuffle/_shuffle.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
logger = logging.getLogger("distributed.shuffle")
4343
if TYPE_CHECKING:
44-
# TODO import from typing (requires Python >=3.10)
4544
from typing import TypeAlias
4645

4746
import pandas as pd

distributed/shuffle/_worker_plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from distributed.utils import log_errors, sync
2121

2222
if TYPE_CHECKING:
23-
# TODO import from typing (requires Python >=3.10)
2423
import pandas as pd
2524

2625
from distributed.worker import Worker

distributed/worker_memory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
from distributed.utils import RateLimiterFilter, has_arg, log_errors
4848

4949
if TYPE_CHECKING:
50-
# TODO import from typing (requires Python >=3.10)
5150
from typing import TypeAlias
5251

5352
# Circular imports

distributed/worker_state_machine.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@
4747
logger = logging.getLogger("distributed.worker.state_machine")
4848

4949
if TYPE_CHECKING:
50-
# TODO import from typing (ParamSpec and TypeAlias requires Python >=3.10)
51-
# TODO import from typing (NotRequired requires Python >=3.11)
52-
from typing import TypeAlias
50+
from typing import ParamSpec, TypeAlias
5351

54-
from typing_extensions import NotRequired, ParamSpec
52+
# TODO import from typing (NotRequired requires Python >=3.11)
53+
from typing_extensions import NotRequired
5554

5655
P = ParamSpec("P")
5756

0 commit comments

Comments
 (0)