From bf6497374e497792450089ecf68a579e34895150 Mon Sep 17 00:00:00 2001 From: Charles Brunet Date: Tue, 12 Nov 2024 08:27:33 -0500 Subject: [PATCH] fixes for mypy --- mesonbuild/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 35f1f24a42f8..70b28fde2ef1 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -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']]: @@ -2536,7 +2536,7 @@ def __init__(self, shared: SharedLibrary, static: StaticLibrary, preferred_libra def __repr__(self) -> str: return f'' - 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':