Skip to content

Commit

Permalink
fixes for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
bruchar1 committed Nov 12, 2024
1 parent b3f9b9d commit e1308dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesonbuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ def get_dependencies_recurse(self, result: OrderedSet[BuildTargetTypes], include
def get_source_subdir(self):
return self.subdir

def get_sources(self):
def get_sources(self) -> T.List[File]:
return self.sources

def get_objects(self) -> T.List[T.Union[str, 'File', 'ExtractedObjects']]:
Expand Down Expand Up @@ -2510,7 +2510,7 @@ def __init__(self, shared: SharedLibrary, static: StaticLibrary, preferred_libra
def __repr__(self) -> str:
return f'<BothLibraries: static={repr(self.static)}; shared={repr(self.shared)}>'

def get(self, lib_type: T.Literal['static', 'shared', 'auto']) -> LibTypes:
def get(self, lib_type: T.Literal['static', 'shared', 'auto']) -> T.Union[StaticLibrary, SharedLibrary]:
if lib_type == 'static':
return self.static
if lib_type == 'shared':
Expand Down

0 comments on commit e1308dd

Please sign in to comment.