aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-18 09:13:53 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-09-29 14:58:32 -0700
commitc411b29b6d5cc5ecba788e4e8d30b1ab792a811d (patch)
tree89b973a966f45c6ad4fd444f21045335f916e3aa /mesonbuild/dependencies
parent137c3124e23f0f589c8855aafcd7897aa6d8c544 (diff)
downloadmeson-c411b29b6d5cc5ecba788e4e8d30b1ab792a811d.zip
meson-c411b29b6d5cc5ecba788e4e8d30b1ab792a811d.tar.gz
meson-c411b29b6d5cc5ecba788e4e8d30b1ab792a811d.tar.bz2
dependencies/misc: Fix typing of curses_factory
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r--mesonbuild/dependencies/misc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py
index 47694af..23619b7 100644
--- a/mesonbuild/dependencies/misc.py
+++ b/mesonbuild/dependencies/misc.py
@@ -32,7 +32,7 @@ from .base import (
if T.TYPE_CHECKING:
from ..environment import Environment, MachineChoice
- from .base import DependencyType # noqa: F401
+ from .base import DependencyType, Dependency # noqa: F401
@factory_methods({DependencyMethods.PKGCONFIG, DependencyMethods.CMAKE})
@@ -406,8 +406,8 @@ class ShadercDependency(ExternalDependency):
@factory_methods({DependencyMethods.PKGCONFIG})
def curses_factory(env: 'Environment', for_machine: 'MachineChoice',
- kwargs: T.Dict[str, T.Any], methods: T.List[DependencyMethods]) -> T.List['DependencyType']:
- candidates = [] # type: T.List['DependencyType']
+ kwargs: T.Dict[str, T.Any], methods: T.List[DependencyMethods]) -> T.List[T.Callable[[], 'Dependency']]:
+ candidates = [] # type: T.List[T.Callable[[], Dependency]]
if DependencyMethods.PKGCONFIG in methods:
pkgconfig_files = ['ncurses', 'ncursesw']