|
45 | 45 |
|
46 | 46 | from collections.abc import Iterable
|
47 | 47 | from dataclasses import dataclass
|
48 |
| -from typing import Any, Dict, Optional |
| 48 | +from typing import Any, Dict, List, Optional |
49 | 49 |
|
50 | 50 |
|
51 | 51 | @dataclass(init=False)
|
@@ -117,7 +117,7 @@ def _HasVariantPrefix(value: str, prefix: str):
|
117 | 117 | return value[len(prefix)+1:]
|
118 | 118 |
|
119 | 119 |
|
120 |
| -def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[list[TargetPart]], modifiers: list[TargetPart]): |
| 120 | +def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: List[List[TargetPart]], modifiers: List[TargetPart]): |
121 | 121 | """Given an input string, process through all the input rules and return
|
122 | 122 | the underlying list of target parts for the input.
|
123 | 123 |
|
@@ -191,13 +191,13 @@ def __init__(self, name, builder_class, **kwargs):
|
191 | 191 | # - esp32-devkitc-light is OK
|
192 | 192 | # - esp32-light is NOT ok
|
193 | 193 | # - esp32-m5stack is NOT ok
|
194 |
| - self.fixed_targets: list[list[TargetPart]] = [] |
| 194 | + self.fixed_targets: List[List[TargetPart]] = [] |
195 | 195 |
|
196 | 196 | # a list of all available modifiers for this build target
|
197 | 197 | # Modifiers can be combined in any way
|
198 |
| - self.modifiers: list[TargetPart] = [] |
| 198 | + self.modifiers: List[TargetPart] = [] |
199 | 199 |
|
200 |
| - def AppendFixedTargets(self, parts: list[TargetPart]): |
| 200 | + def AppendFixedTargets(self, parts: List[TargetPart]): |
201 | 201 | """Append a list of potential targets/variants.
|
202 | 202 |
|
203 | 203 | Example:
|
|
0 commit comments