aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-09 11:53:31 -0700
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-08-20 18:57:19 +0200
commit2a70c039bfd02d4aa4b03916a1a903de867a39be (patch)
treef1e4059e18be5c08f8049da3b284ede96da98aa8
parent0bc77c604ff45a3b1a010aca6e99c9b8770f772f (diff)
downloadmeson-2a70c039bfd02d4aa4b03916a1a903de867a39be.zip
meson-2a70c039bfd02d4aa4b03916a1a903de867a39be.tar.gz
meson-2a70c039bfd02d4aa4b03916a1a903de867a39be.tar.bz2
ninjabackend: add missing type annotation
I needed to figure this out for the purposes of annotating CleanTrees anyway.
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 65aeb06..46ad450 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -3086,7 +3086,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
except OSError:
mlog.debug("Library versioning disabled because we do not have symlink creation privileges.")
- def generate_custom_target_clean(self, trees):
+ def generate_custom_target_clean(self, trees: T.List[str]) -> str:
e = NinjaBuildElement(self.all_outputs, 'meson-clean-ctlist', 'CUSTOM_COMMAND', 'PHONY')
d = CleanTrees(self.environment.get_build_dir(), trees)
d_file = os.path.join(self.environment.get_scratch_dir(), 'cleantrees.dat')