diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-03-14 13:02:52 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-03-22 15:15:29 +0200 |
commit | 655746e8b4ae7ce7b5a51bd3885e84d5587711e4 (patch) | |
tree | 9ce363a9101a8fea2549f04c67fc49aef6f47146 /mesonbuild | |
parent | 39f1d52e4a82cc75a4a3a41c3cc17fe2dabdb30b (diff) | |
download | meson-655746e8b4ae7ce7b5a51bd3885e84d5587711e4.zip meson-655746e8b4ae7ce7b5a51bd3885e84d5587711e4.tar.gz meson-655746e8b4ae7ce7b5a51bd3885e84d5587711e4.tar.bz2 |
compilers: fix mypy warning in Rust detection
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/compilers/detect.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index c48b62c..2b201db 100644 --- a/mesonbuild/compilers/detect.py +++ b/mesonbuild/compilers/detect.py @@ -1049,6 +1049,7 @@ def detect_rust_compiler(env: 'Environment', for_machine: MachineChoice) -> Rust # This trickery with type() gets us the class of the linker # so we can initialize a new copy for the Rust Compiler # TODO rewrite this without type: ignore + assert cc.linker is not None, 'for mypy' if is_link_exe: linker = type(cc.linker)(for_machine, always_args, exelist=cc.linker.exelist, # type: ignore version=cc.linker.version, **extra_args) # type: ignore |