diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-11-03 15:45:19 -0800 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2021-01-09 08:43:27 +0530 |
commit | 4ac74010b165674591619a9a85d0bf2415047563 (patch) | |
tree | 1cc953e66f3acfb33a6cc943af5e8014ee2ac7ec | |
parent | e0d3d25a48917840211a64865b9c1858930ecb56 (diff) | |
download | meson-4ac74010b165674591619a9a85d0bf2415047563.zip meson-4ac74010b165674591619a9a85d0bf2415047563.tar.gz meson-4ac74010b165674591619a9a85d0bf2415047563.tar.bz2 |
wrap: fix type annotations
-rw-r--r-- | mesonbuild/wrap/wrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 7b50bc1..1eeb738 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -187,12 +187,12 @@ def get_directory(subdir_root: str, packagename: str) -> str: return wrap.directory return packagename -def verbose_git(*args, **kwargs): +def verbose_git(cmd: T.List[str], workingdir: str, check: bool = False) -> bool: ''' Wrapper to convert GitException to WrapException caught in interpreter. ''' try: - return mesonlib.verbose_git(*args, **kwargs) + return mesonlib.verbose_git(cmd, workingdir, check=check) except mesonlib.GitException as e: raise WrapException(str(e)) |