summaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r--mesonbuild/dependencies/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
index fa278d97c..03b2596e1 100644
--- a/mesonbuild/dependencies/base.py
+++ b/mesonbuild/dependencies/base.py
@@ -353,14 +353,14 @@ class InternalDependency(Dependency):
new_dep.libraries = []
return new_dep
- def get_as_static(self, recursive: bool) -> Dependency:
+ def get_as_static(self, recursive: bool) -> InternalDependency:
new_dep = copy.copy(self)
new_dep.libraries = [lib.get('static') for lib in self.libraries]
if recursive:
new_dep.ext_deps = [dep.get_as_static(True) for dep in self.ext_deps]
return new_dep
- def get_as_shared(self, recursive: bool) -> Dependency:
+ def get_as_shared(self, recursive: bool) -> InternalDependency:
new_dep = copy.copy(self)
new_dep.libraries = [lib.get('shared') for lib in self.libraries]
if recursive: