diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-08-30 12:59:56 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-09-08 20:15:57 +0200 |
commit | 1217cf9a3bf7a49b68539ea1649ad5d8289ca5d1 (patch) | |
tree | 5c2c2b484c7af58c5aedbda4579c87adfdfa4375 /mesonbuild/dependencies/hdf5.py | |
parent | a4f4379c44c7f13bc9e44bc01504077af1f3a338 (diff) | |
download | meson-1217cf9a3bf7a49b68539ea1649ad5d8289ca5d1.zip meson-1217cf9a3bf7a49b68539ea1649ad5d8289ca5d1.tar.gz meson-1217cf9a3bf7a49b68539ea1649ad5d8289ca5d1.tar.bz2 |
typing: fully annotate boost and hdf5 deps
Diffstat (limited to 'mesonbuild/dependencies/hdf5.py')
-rw-r--r-- | mesonbuild/dependencies/hdf5.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/hdf5.py b/mesonbuild/dependencies/hdf5.py index 6a9bf2d..92277a1 100644 --- a/mesonbuild/dependencies/hdf5.py +++ b/mesonbuild/dependencies/hdf5.py @@ -22,10 +22,14 @@ from .. import mlog from ..mesonlib import split_args, listify from .base import (DependencyException, DependencyMethods, ExternalDependency, ExternalProgram, PkgConfigDependency) +import typing as T + +if T.TYPE_CHECKING: + from ..environment import Environment class HDF5Dependency(ExternalDependency): - def __init__(self, environment, kwargs): + def __init__(self, environment: 'Environment', kwargs: T.Dict[str, T.Any]) -> None: language = kwargs.get('language', 'c') super().__init__('hdf5', environment, kwargs, language=language) kwargs['required'] = False @@ -127,5 +131,5 @@ class HDF5Dependency(ExternalDependency): return @staticmethod - def get_methods(): + def get_methods() -> T.List[DependencyMethods]: return [DependencyMethods.AUTO, DependencyMethods.PKGCONFIG] |