diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2020-09-09 10:31:52 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-09 10:31:52 -0700 |
| commit | 4c2d0eb9bcedefa3ef06a237a0502afbc581268b (patch) | |
| tree | 1b08ca5fb0c93573409a7a8954e6e1905f8a5b10 /mesonbuild/scripts/clangformat.py | |
| parent | 8d54b7bda30062569c981b50a85a175565a7c15a (diff) | |
| parent | 057c77f7d08b3372e99065fb3f3cd37f16801a82 (diff) | |
| download | meson-4c2d0eb9bcedefa3ef06a237a0502afbc581268b.tar.gz | |
Merge pull request #7657 from mensinda/moreTyping
typing: Strict type annotations
Diffstat (limited to 'mesonbuild/scripts/clangformat.py')
| -rw-r--r-- | mesonbuild/scripts/clangformat.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/scripts/clangformat.py b/mesonbuild/scripts/clangformat.py index 4b441de13..19ea5ec2f 100644 --- a/mesonbuild/scripts/clangformat.py +++ b/mesonbuild/scripts/clangformat.py @@ -18,8 +18,9 @@ from concurrent.futures import ThreadPoolExecutor from ..environment import detect_clangformat from ..compilers import lang_suffixes +import typing as T -def clangformat(exelist, srcdir_name, builddir_name): +def clangformat(exelist: T.List[str], srcdir_name: str, builddir_name: str) -> int: srcdir = pathlib.Path(srcdir_name) suffixes = set(lang_suffixes['c']).union(set(lang_suffixes['cpp'])) suffixes.add('h') @@ -33,7 +34,7 @@ def clangformat(exelist, srcdir_name, builddir_name): [x.result() for x in futures] return 0 -def run(args): +def run(args: T.List[str]) -> int: srcdir_name = args[0] builddir_name = args[1] |
