Skip to content

Commit

Permalink
fixes for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
bruchar1 committed Dec 6, 2024
1 parent 38051a5 commit bf64973
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 @@ -1323,7 +1323,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 @@ -2536,7 +2536,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 bf64973

Please sign in to comment.