aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/coarrays.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-06-05 16:40:02 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-06-06 20:30:24 +0300
commit25875ae0d37b68635a61298a24917c313fb761e1 (patch)
treed4419cd0477690c8f0c093a5c6210c0baf5cce2b /mesonbuild/dependencies/coarrays.py
parent71906c4bf842bfa9ea65893ae9e3ddb2b61b0440 (diff)
downloadmeson-25875ae0d37b68635a61298a24917c313fb761e1.zip
meson-25875ae0d37b68635a61298a24917c313fb761e1.tar.gz
meson-25875ae0d37b68635a61298a24917c313fb761e1.tar.bz2
typing: Fully annotate dependencies.{detect,factory} + some other fixes
Diffstat (limited to 'mesonbuild/dependencies/coarrays.py')
-rw-r--r--mesonbuild/dependencies/coarrays.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/coarrays.py b/mesonbuild/dependencies/coarrays.py
index e86249f..35001e4 100644
--- a/mesonbuild/dependencies/coarrays.py
+++ b/mesonbuild/dependencies/coarrays.py
@@ -22,14 +22,15 @@ from .factory import factory_methods
if T.TYPE_CHECKING:
from . base import Dependency
+ from . factory import TV_DepGenerators
from ..environment import Environment, MachineChoice
@factory_methods({DependencyMethods.PKGCONFIG, DependencyMethods.CMAKE, DependencyMethods.SYSTEM})
def coarray_factory(env: 'Environment', for_machine: 'MachineChoice',
- kwargs: T.Dict[str, T.Any], methods: T.List[DependencyMethods]) -> T.List[T.Callable[[], 'Dependency']]:
+ kwargs: T.Dict[str, T.Any], methods: T.List[DependencyMethods]) -> 'TV_DepGenerators':
fcid = detect_compiler('coarray', env, for_machine, 'fortran').get_id()
- candidates: T.List[T.Callable[[], 'Dependency']] = []
+ candidates: 'TV_DepGenerators' = []
if fcid == 'gcc':
# OpenCoarrays is the most commonly used method for Fortran Coarray with GCC