aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/optinterpreter.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-04-05 09:20:53 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-04-05 09:26:42 -0700
commit05ad69a1c7f98b82278916e29964c153c8f39390 (patch)
tree29f4293ec09fd50f51b8325d393c0deb5814db75 /mesonbuild/optinterpreter.py
parent863de725990a944380df6ecf79b43f1a51718489 (diff)
downloadmeson-05ad69a1c7f98b82278916e29964c153c8f39390.zip
meson-05ad69a1c7f98b82278916e29964c153c8f39390.tar.gz
meson-05ad69a1c7f98b82278916e29964c153c8f39390.tar.bz2
optinterpreter: Add type annotations to is_invalid_name
Diffstat (limited to 'mesonbuild/optinterpreter.py')
-rw-r--r--mesonbuild/optinterpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py
index 2d60d10..5bddbc8 100644
--- a/mesonbuild/optinterpreter.py
+++ b/mesonbuild/optinterpreter.py
@@ -24,7 +24,7 @@ forbidden_option_names = set(coredata.builtin_options.keys())
forbidden_prefixes = [lang + '_' for lang in compilers.all_languages] + ['b_', 'backend_']
reserved_prefixes = ['cross_']
-def is_invalid_name(name):
+def is_invalid_name(name: str) -> bool:
if name in forbidden_option_names:
return True
pref = name.split('_')[0] + '_'