dependencies: Fix d_module_version types

It's a `List[str | int]`, just like in the build module. In fact, we
should probably share the same type information between the two.
pull/10453/head
Dylan Baker 3 years ago committed by Eli Schwartz
parent 7b90066a01
commit 50e9769403
  1. 2
      mesonbuild/dependencies/base.py

@ -239,7 +239,7 @@ class InternalDependency(Dependency):
whole_libraries: T.List[T.Union[StaticLibrary, CustomTarget, CustomTargetIndex]],
sources: T.Sequence[T.Union[FileOrString, CustomTarget, StructuredSources]],
ext_deps: T.List[Dependency], variables: T.Dict[str, str],
d_module_versions: T.List[str], d_import_dirs: T.List['IncludeDirs']):
d_module_versions: T.List[T.Union[str, int]], d_import_dirs: T.List['IncludeDirs']):
super().__init__(DependencyTypeName('internal'), {})
self.version = version
self.is_found = True

Loading…
Cancel
Save