Skip to content

Commit 8972c71

Browse files
committed
externalproject: Fix typing annotation
1 parent 6ec0b53 commit 8972c71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mesonbuild/scripts/externalproject.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, options: argparse.Namespace):
3232
self.depfile = options.depfile
3333
self.make = options.make
3434

35-
def write_depfile(self):
35+
def write_depfile(self) -> None:
3636
with open(self.depfile, 'w') as f:
3737
f.write('{}: \\\n'.format(self.stampfile))
3838
for dirpath, dirnames, filenames in os.walk(self.src_dir):
@@ -43,7 +43,7 @@ def write_depfile(self):
4343
path = Path(dirpath, fname)
4444
f.write(' {} \\\n'.format(path.as_posix().replace(' ', '\\ ')))
4545

46-
def write_stampfile(self):
46+
def write_stampfile(self) -> None:
4747
with open(self.stampfile, 'w') as f:
4848
pass
4949

@@ -80,7 +80,7 @@ def _run(self, command: T.List[str]) -> int:
8080
cwd=self.build_dir)
8181
return p.returncode
8282

83-
def run(args):
83+
def run(args: T.List[str]) -> int:
8484
parser = argparse.ArgumentParser()
8585
parser.add_argument('--name')
8686
parser.add_argument('--srcdir')

0 commit comments

Comments
 (0)