aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-05-20 13:14:55 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-06-01 22:49:10 -0400
commit50e9769403a8e3f7c281aff1ff8f9cad7bfe2276 (patch)
treebe37b931cd064321bfc6ccf99b6040de8f58870c /mesonbuild/dependencies
parent7b90066a015eb0f972606ac9d87f5097e1eb6a77 (diff)
downloadmeson-50e9769403a8e3f7c281aff1ff8f9cad7bfe2276.zip
meson-50e9769403a8e3f7c281aff1ff8f9cad7bfe2276.tar.gz
meson-50e9769403a8e3f7c281aff1ff8f9cad7bfe2276.tar.bz2
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.
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r--mesonbuild/dependencies/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
index e239d66..1cea1e0 100644
--- a/mesonbuild/dependencies/base.py
+++ b/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