diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-09-13 16:04:15 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-09-13 17:33:00 -0400 |
commit | 8972c715229d8c5cf4f35dbdbe5c375a2b080827 (patch) | |
tree | fa3db0bd24deb2c7b1331ecf9accb09ff2f3fa6a /mesonbuild/scripts | |
parent | 6ec0b535ba75955d2c82fcf6baff895782a96bb0 (diff) | |
download | meson-8972c715229d8c5cf4f35dbdbe5c375a2b080827.zip meson-8972c715229d8c5cf4f35dbdbe5c375a2b080827.tar.gz meson-8972c715229d8c5cf4f35dbdbe5c375a2b080827.tar.bz2 |
externalproject: Fix typing annotation
Diffstat (limited to 'mesonbuild/scripts')
-rw-r--r-- | mesonbuild/scripts/externalproject.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/scripts/externalproject.py b/mesonbuild/scripts/externalproject.py index 6ed6264..2789dc0 100644 --- a/mesonbuild/scripts/externalproject.py +++ b/mesonbuild/scripts/externalproject.py @@ -32,7 +32,7 @@ class ExternalProject: self.depfile = options.depfile self.make = options.make - def write_depfile(self): + def write_depfile(self) -> None: with open(self.depfile, 'w') as f: f.write('{}: \\\n'.format(self.stampfile)) for dirpath, dirnames, filenames in os.walk(self.src_dir): @@ -43,7 +43,7 @@ class ExternalProject: path = Path(dirpath, fname) f.write(' {} \\\n'.format(path.as_posix().replace(' ', '\\ '))) - def write_stampfile(self): + def write_stampfile(self) -> None: with open(self.stampfile, 'w') as f: pass @@ -80,7 +80,7 @@ class ExternalProject: cwd=self.build_dir) return p.returncode -def run(args): +def run(args: T.List[str]) -> int: parser = argparse.ArgumentParser() parser.add_argument('--name') parser.add_argument('--srcdir') |