build: fix annotation for Build.targets
This really does need to be an OrderedDict, not a MutableMapping, as there are consumers in the backend that need dictionary only methods.
This commit is contained in:
parent
e3b2d4ac8b
commit
3467cf956c
|
@ -213,7 +213,7 @@ class Build:
|
|||
self.project_version = None
|
||||
self.environment = environment
|
||||
self.projects = {}
|
||||
self.targets: T.MutableMapping[str, 'Target'] = OrderedDict()
|
||||
self.targets: 'T.OrderedDict[str, T.Union[CustomTarget, BuildTarget]]' = OrderedDict()
|
||||
self.run_target_names: T.Set[T.Tuple[str, str]] = set()
|
||||
self.global_args: PerMachine[T.Dict[str, T.List[str]]] = PerMachine({}, {})
|
||||
self.global_link_args: PerMachine[T.Dict[str, T.List[str]]] = PerMachine({}, {})
|
||||
|
@ -282,7 +282,7 @@ class Build:
|
|||
def get_subproject_dir(self):
|
||||
return self.subproject_dir
|
||||
|
||||
def get_targets(self) -> T.Dict[str, 'Target']:
|
||||
def get_targets(self) -> 'T.OrderedDict[str, T.Union[CustomTarget, BuildTarget]]':
|
||||
return self.targets
|
||||
|
||||
def get_tests(self) -> T.List['Test']:
|
||||
|
|
Loading…
Reference in New Issue