From 96766010c41f9dfcda76c7fc12f55da64e29445e Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 14 May 2019 16:40:30 -0700 Subject: [PATCH] environment: annotate detect_ninja for mtest --- mesonbuild/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 962063997..64d576331 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -114,7 +114,7 @@ def find_coverage_tools(): return gcovr_exe, gcovr_new_rootdir, lcov_exe, genhtml_exe -def detect_ninja(version='1.5', log=False): +def detect_ninja(version: str = '1.5', log: bool = False) -> str: env_ninja = os.environ.get('NINJA', None) for n in [env_ninja] if env_ninja else ['ninja', 'ninja-build', 'samu']: try: