From 4ac74010b165674591619a9a85d0bf2415047563 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 3 Nov 2020 15:45:19 -0800 Subject: [PATCH] wrap: fix type annotations --- mesonbuild/wrap/wrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 7b50bc1a2..1eeb73853 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))