summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objcpp.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-05-16 19:24:07 -0400
committerEli Schwartz <eschwartz93@gmail.com>2024-05-19 14:40:28 -0400
commit29a62ff794df3d72616740be9723b87f6b491722 (patch)
treed0e54351bf1e40eb85cf08bf2c5374798cd9dc3b /mesonbuild/compilers/objcpp.py
parent128f0e828e425793203f3112c23cb31f959b4b3e (diff)
downloadmeson-29a62ff794df3d72616740be9723b87f6b491722.tar.gz
pylint: fix false positive for missing else branch
We cover every case as if/elif/elif. mypy can handle this fine, but pylint doesn't do control flow or type checking and thinks in the missing else case, the variable might not be defined. For mypy as well, doing this instance check is unnecessary as it can be inferred. So just micro-optimize the check and allow pylint to safely analyze the logic.
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
0 files changed, 0 insertions, 0 deletions