add a couple more type annotations

This commit is contained in:
Dylan Baker 2021-04-30 12:58:53 -07:00
parent 145d92aa27
commit 201dc64226
2 changed files with 2 additions and 2 deletions

View File

@ -2744,7 +2744,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
return linker.get_link_whole_for(target_args) if target_args else []
@lru_cache(maxsize=None)
def guess_library_absolute_path(self, linker, libname, search_dirs, patterns):
def guess_library_absolute_path(self, linker, libname, search_dirs, patterns) -> Path:
for d in search_dirs:
for p in patterns:
trial = CCompiler._get_trials_from_pattern(p, d, libname)

View File

@ -510,7 +510,7 @@ class GnomeModule(ExtensionModule):
return self.gir_dep, self.giscanner, self.gicompiler
@functools.lru_cache(maxsize=None)
def _gir_has_option(self, option):
def _gir_has_option(self, option) -> bool:
exe = self.giscanner
if hasattr(exe, 'held_object'):
exe = exe.held_object