From ff0fd7d44c3a108a361fa62fdeb349ef7d288b0e Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 2 Jun 2021 13:28:57 -0700 Subject: build: Add a type annotation to CustomTarget --- mesonbuild/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index dc375cc70..a4d14d051 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2242,7 +2242,7 @@ class CustomTarget(Target, CommandBase): self.typename = 'custom' # TODO expose keyword arg to make MachineChoice.HOST configurable super().__init__(name, subdir, subproject, False, MachineChoice.HOST) - self.dependencies = [] + self.dependencies: T.List[T.Union[CustomTarget, BuildTarget]] = [] self.extra_depends = [] self.depend_files = [] # Files that this target depends on but are not on the command line. self.depfile = None -- cgit v1.2.3