Fix typing for InternalDependency.get_as_static() and get_as_shared()

pull/13664/head
Charles Brunet 3 months ago committed by Dylan Baker
parent fa8bd9306c
commit 68d620ea8e
  1. 4
      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:

Loading…
Cancel
Save