diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2024-11-12 08:27:33 -0500 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-04-09 18:41:00 +0300 |
| commit | 43816f664395232bfe536c2aa69d1aa3ee0b04f5 (patch) | |
| tree | 430b643787f56f3fdf19d8bf2c483a4cad7a1dbe | |
| parent | a4be4cd420cd7000aefb6ff52e85f6f873f1b4a5 (diff) | |
| download | meson-43816f664395232bfe536c2aa69d1aa3ee0b04f5.tar.gz | |
fixes for mypy
| -rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 27d60c854..e94f75faa 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1350,7 +1350,7 @@ class BuildTarget(Target): 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']]: @@ -2566,7 +2566,7 @@ class BothLibraries(SecondLevelHolder): def __repr__(self) -> str: return f'<BothLibraries: static={repr(self.static)}; shared={repr(self.shared)}>' - def get(self, lib_type: T.Literal['static', 'shared']) -> LibTypes: + def get(self, lib_type: T.Literal['static', 'shared']) -> T.Union[StaticLibrary, SharedLibrary]: if lib_type == 'static': return self.static if lib_type == 'shared': |
