diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-10-05 10:57:41 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-11-01 12:24:25 -0700 |
commit | ac025219544e6d8a2e315ca56583334b151e7093 (patch) | |
tree | 15b1ea2c8400821aa16c9bddedf6648be845cec8 | |
parent | b572a7980ea3cbbc31ddc4fb012a9369bfb03ccb (diff) | |
download | meson-ac025219544e6d8a2e315ca56583334b151e7093.zip meson-ac025219544e6d8a2e315ca56583334b151e7093.tar.gz meson-ac025219544e6d8a2e315ca56583334b151e7093.tar.bz2 |
build: Add annotations to CustomTarget.extra_depends
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 1af2ae2..c2c729b 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2347,7 +2347,7 @@ class CustomTarget(Target, CommandBase): # TODO expose keyword arg to make MachineChoice.HOST configurable super().__init__(name, subdir, subproject, False, MachineChoice.HOST) self.dependencies: T.List[T.Union[CustomTarget, BuildTarget]] = [] - self.extra_depends = [] + self.extra_depends: T.List[T.Union[CustomTarget, BuildTarget]] = [] self.depend_files = [] # Files that this target depends on but are not on the command line. self.depfile = None self.process_kwargs(kwargs, backend) @@ -2367,7 +2367,7 @@ class CustomTarget(Target, CommandBase): repr_str = "<{0} {1}: {2}>" return repr_str.format(self.__class__.__name__, self.get_id(), self.command) - def get_target_dependencies(self): + def get_target_dependencies(self) -> T.List[T.Union['BuildTarget', 'CustomTarget']]: deps = self.dependencies[:] deps += self.extra_depends for c in self.sources: |