diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-07 18:12:53 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-09 09:46:37 +0200 |
commit | 15b69d0421fb998cef2647cae7af62baa6af3498 (patch) | |
tree | d5a61f30761453110502aeae00b010de20e3cf60 /mesonbuild/dependencies/scalapack.py | |
parent | a7357887c79debc73bb0158ce70b22263fcf7a76 (diff) | |
download | meson-15b69d0421fb998cef2647cae7af62baa6af3498.zip meson-15b69d0421fb998cef2647cae7af62baa6af3498.tar.gz meson-15b69d0421fb998cef2647cae7af62baa6af3498.tar.bz2 |
typing: Fully annotate dependencies
Diffstat (limited to 'mesonbuild/dependencies/scalapack.py')
-rw-r--r-- | mesonbuild/dependencies/scalapack.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/dependencies/scalapack.py b/mesonbuild/dependencies/scalapack.py index b19e98b..70dbbf0 100644 --- a/mesonbuild/dependencies/scalapack.py +++ b/mesonbuild/dependencies/scalapack.py @@ -32,7 +32,7 @@ if T.TYPE_CHECKING: def scalapack_factory(env: 'Environment', for_machine: 'MachineChoice', kwargs: T.Dict[str, T.Any], methods: T.List[DependencyMethods]) -> 'TV_DepGenerators': - candidates = [] + candidates: 'TV_DepGenerators' = [] if DependencyMethods.PKGCONFIG in methods: mkl = 'mkl-static-lp64-iomp' if kwargs.get('static', False) else 'mkl-dynamic-lp64-iomp' @@ -96,9 +96,10 @@ class MKLPkgConfigDependency(PkgConfigDependency): pass if v: + assert isinstance(v, str) self.version = v - def _set_libs(self): + def _set_libs(self) -> None: super()._set_libs() if self.env.machines[self.for_machine].is_windows(): @@ -135,7 +136,7 @@ class MKLPkgConfigDependency(PkgConfigDependency): self.link_args.insert(i, '-lmkl_scalapack_lp64') self.link_args.insert(i + 1, '-lmkl_blacs_intelmpi_lp64') - def _set_cargs(self): + def _set_cargs(self) -> None: env = None if self.language == 'fortran': # gfortran doesn't appear to look in system paths for INCLUDE files, |