dependencies/misc: Fix typing of curses_factory
This commit is contained in:
parent
137c3124e2
commit
c411b29b6d
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue