From 201dc6422683858f9656c8b572530237c810feef Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 30 Apr 2021 12:58:53 -0700 Subject: [PATCH] add a couple more type annotations --- mesonbuild/backend/ninjabackend.py | 2 +- mesonbuild/modules/gnome.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 463c4c608..f69f64fd9 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -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) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 95860d632..0a72ad663 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -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