summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-10-01 10:41:59 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2025-03-01 13:30:06 +0200
commitf0795e14c55dfbad2291136090ee964cce2c38ed (patch)
treee9c977aaee1b004867034a481d66206230891399 /mesonbuild/compilers
parentdfa118547247dc862310052f75fcdbc020089c24 (diff)
downloadmeson-f0795e14c55dfbad2291136090ee964cce2c38ed.tar.gz
environment: make fully type safe
This as much as anything is to stop lying to envconfig about the potential types it will be given.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/compilers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index c927293fb..18535be42 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1424,6 +1424,8 @@ def get_global_options(lang: str,
comp_options = env.options.get(comp_key, [])
link_options = env.options.get(largkey, [])
+ assert isinstance(comp_options, (str, list)), 'for mypy'
+ assert isinstance(link_options, (str, list)), 'for mypy'
cargs = options.UserStringArrayOption(
argkey.name,