mesonlib: Annotate substring_in_list

for mtest
This commit is contained in:
Dylan Baker 2019-05-14 16:41:21 -07:00
parent 96766010c4
commit 2cc70c631b
1 changed files with 1 additions and 1 deletions

View File

@ -1219,7 +1219,7 @@ def detect_subprojects(spdir_name, current_dir='', result=None):
def get_error_location_string(fname: str, lineno: str) -> str:
return '{}:{}:'.format(fname, lineno)
def substring_is_in_list(substr, strlist):
def substring_is_in_list(substr: str, strlist: typing.List[str]) -> bool:
for s in strlist:
if substr in s:
return True