diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2024-10-01 10:41:59 -0700 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-03-01 13:30:06 +0200 |
| commit | f0795e14c55dfbad2291136090ee964cce2c38ed (patch) | |
| tree | e9c977aaee1b004867034a481d66206230891399 /mesonbuild/compilers | |
| parent | dfa118547247dc862310052f75fcdbc020089c24 (diff) | |
| download | meson-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.py | 2 |
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, |
