environment: annotate detect_ninja

for mtest
This commit is contained in:
Dylan Baker 2019-05-14 16:40:30 -07:00
parent 75aa3d096c
commit 96766010c4
1 changed files with 1 additions and 1 deletions

View File

@ -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: