diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2024-08-20 10:42:11 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-08-26 12:23:03 -0400 |
| commit | 08a46bb6c5aabb7fccafe95afd7b10a75e9f3e07 (patch) | |
| tree | ae63b2cbda30fd4a3cffb9acca05e7d7bf7977aa | |
| parent | 415ccb4b16e3432f51c8abe915fcca1494bfcc9b (diff) | |
| download | meson-08a46bb6c5aabb7fccafe95afd7b10a75e9f3e07.tar.gz | |
cmake/interpreter: Fix some incorrect and missing annotations
| -rw-r--r-- | mesonbuild/cmake/interpreter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py index db0fc4b36..b427132f6 100644 --- a/mesonbuild/cmake/interpreter.py +++ b/mesonbuild/cmake/interpreter.py @@ -147,7 +147,7 @@ class OutputTargetMap: if k is not None: self.tgt_map[k] = tgt - def _return_first_valid_key(self, keys: T.List[str]) -> T.Optional[T.Union['ConverterTarget', 'ConverterCustomTarget']]: + def _return_first_valid_key(self, keys: T.List[T.Optional[str]]) -> T.Optional[T.Union['ConverterTarget', 'ConverterCustomTarget']]: for i in keys: if i and i in self.tgt_map: return self.tgt_map[i] @@ -165,7 +165,7 @@ class OutputTargetMap: return tgt def artifact(self, name: str) -> T.Optional[T.Union['ConverterTarget', 'ConverterCustomTarget']]: - keys = [] + keys: T.List[T.Optional[str]] = [] candidates = [name, OutputTargetMap.rm_so_version.sub('', name)] for i in lib_suffixes: if not name.endswith('.' + i): |
