aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/cleantrees.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/scripts/cleantrees.py')
-rw-r--r--mesonbuild/scripts/cleantrees.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/scripts/cleantrees.py b/mesonbuild/scripts/cleantrees.py
index 0af8dd0..6feb9a7 100644
--- a/mesonbuild/scripts/cleantrees.py
+++ b/mesonbuild/scripts/cleantrees.py
@@ -16,8 +16,9 @@ import os
import sys
import shutil
import pickle
+import typing as T
-def rmtrees(build_dir, trees):
+def rmtrees(build_dir: str, trees: T.List[str]) -> None:
for t in trees:
# Never delete trees outside of the builddir
if os.path.isabs(t):
@@ -28,7 +29,7 @@ def rmtrees(build_dir, trees):
if os.path.isdir(bt):
shutil.rmtree(bt, ignore_errors=True)
-def run(args):
+def run(args: T.List[str]) -> int:
if len(args) != 1:
print('Cleaner script for Meson. Do not run on your own please.')
print('cleantrees.py <data-file>')