add a couple more type annotations
This commit is contained in:
parent
145d92aa27
commit
201dc64226
|
@ -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 []
|
return linker.get_link_whole_for(target_args) if target_args else []
|
||||||
|
|
||||||
@lru_cache(maxsize=None)
|
@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 d in search_dirs:
|
||||||
for p in patterns:
|
for p in patterns:
|
||||||
trial = CCompiler._get_trials_from_pattern(p, d, libname)
|
trial = CCompiler._get_trials_from_pattern(p, d, libname)
|
||||||
|
|
|
@ -510,7 +510,7 @@ class GnomeModule(ExtensionModule):
|
||||||
return self.gir_dep, self.giscanner, self.gicompiler
|
return self.gir_dep, self.giscanner, self.gicompiler
|
||||||
|
|
||||||
@functools.lru_cache(maxsize=None)
|
@functools.lru_cache(maxsize=None)
|
||||||
def _gir_has_option(self, option):
|
def _gir_has_option(self, option) -> bool:
|
||||||
exe = self.giscanner
|
exe = self.giscanner
|
||||||
if hasattr(exe, 'held_object'):
|
if hasattr(exe, 'held_object'):
|
||||||
exe = exe.held_object
|
exe = exe.held_object
|
||||||
|
|
Loading…
Reference in New Issue