dependencies/misc: Fix typing of curses_factory

This commit is contained in:
Dylan Baker 2020-09-18 09:13:53 -07:00
parent 137c3124e2
commit c411b29b6d
1 changed files with 3 additions and 3 deletions

View File

@ -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']