From 34bc81a49f098d2f113e198a5ec75236cfd3cb21 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 3 Feb 2025 12:23:51 -0800 Subject: build: type BuildTarget.link_depends --- mesonbuild/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 677027201..b70866fa4 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -723,7 +723,7 @@ class BuildTarget(Target): self.link_targets: T.List[LibTypes] = [] self.link_whole_targets: T.List[T.Union[StaticLibrary, CustomTarget, CustomTargetIndex]] = [] self.depend_files: T.List[File] = [] - self.link_depends = [] + self.link_depends: T.List[T.Union[File, CustomTarget, CustomTargetIndex, BuildTarget]] = [] self.added_deps = set() self.name_prefix_set = False self.name_suffix_set = False @@ -1027,7 +1027,7 @@ class BuildTarget(Target): langs = ', '.join(self.compilers.keys()) raise InvalidArguments(f'Cannot mix those languages into a target: {langs}') - def process_link_depends(self, sources): + def process_link_depends(self, sources: T.Iterable[T.Union[str, File, CustomTarget, CustomTargetIndex, BuildTarget]]) -> None: """Process the link_depends keyword argument. This is designed to handle strings, Files, and the output of Custom -- cgit v1.2.3