diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-13 19:10:12 (GMT) |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-16 20:58:43 (GMT) |
commit | 3829f4551edebee3e42864b19e6332b24af3eb93 (patch) | |
tree | 6ca07b12f8a14e705c00a198739d43cb46d6666e /SCons/Executor.py | |
parent | d1d5355b716644be649d99b16c6f2bf64e9f64e4 (diff) | |
download | SCons-3829f4551edebee3e42864b19e6332b24af3eb93.zip SCons-3829f4551edebee3e42864b19e6332b24af3eb93.tar.gz SCons-3829f4551edebee3e42864b19e6332b24af3eb93.tar.bz2 |
Integrate `from __future__ import annotations`
Diffstat (limited to 'SCons/Executor.py')
-rw-r--r-- | SCons/Executor.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/SCons/Executor.py b/SCons/Executor.py index 1b054b4..53eb5cb 100644 --- a/SCons/Executor.py +++ b/SCons/Executor.py @@ -23,8 +23,9 @@ """Execute actions with specific lists of target and source Nodes.""" +from __future__ import annotations + import collections -from typing import Dict import SCons.Errors import SCons.Memoize @@ -32,7 +33,6 @@ import SCons.Util from SCons.compat import NoSlotsPyPy import SCons.Debug from SCons.Debug import logInstanceCreation -from SCons.Util.sctyping import ExecutorType class Batch: """Remembers exact association between targets @@ -550,12 +550,12 @@ class Executor(metaclass=NoSlotsPyPy): -_batch_executors: Dict[str, ExecutorType] = {} +_batch_executors: dict[str, Executor] = {} -def GetBatchExecutor(key: str) -> ExecutorType: +def GetBatchExecutor(key: str) -> Executor: return _batch_executors[key] -def AddBatchExecutor(key: str, executor: ExecutorType) -> None: +def AddBatchExecutor(key: str, executor: Executor) -> None: assert key not in _batch_executors _batch_executors[key] = executor |