aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-04-30 12:58:53 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-02 15:53:17 -0700
commit201dc6422683858f9656c8b572530237c810feef (patch)
tree7de05236c2ac989b4ddc51ea5faed52252e55972
parent145d92aa27e4a7ff82115c5e82ec62251ce9756b (diff)
downloadmeson-201dc6422683858f9656c8b572530237c810feef.zip
meson-201dc6422683858f9656c8b572530237c810feef.tar.gz
meson-201dc6422683858f9656c8b572530237c810feef.tar.bz2
add a couple more type annotations
-rw-r--r--mesonbuild/backend/ninjabackend.py2
-rw-r--r--mesonbuild/modules/gnome.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 463c4c6..f69f64f 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 95860d6..0a72ad6 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