aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-05-14 16:41:21 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-05-14 16:43:29 -0700
commit2cc70c631be9f217a7b0e8f6c6439db846fc3aae (patch)
tree2b9aadd74f67f715202385e0f080d565a47a1204 /mesonbuild/mesonlib.py
parent96766010c41f9dfcda76c7fc12f55da64e29445e (diff)
downloadmeson-2cc70c631be9f217a7b0e8f6c6439db846fc3aae.zip
meson-2cc70c631be9f217a7b0e8f6c6439db846fc3aae.tar.gz
meson-2cc70c631be9f217a7b0e8f6c6439db846fc3aae.tar.bz2
mesonlib: Annotate substring_in_list
for mtest
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 07beb69..8d195ac 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -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