From 3c8be4fe2637498ee9e774bb95500226a17dd2e9 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 27 Mar 2024 10:12:59 -0700 Subject: [PATCH] interpreter: fix return type annotation of helper --- mesonbuild/interpreter/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 730eddd4a..f88f407de 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -2440,7 +2440,7 @@ class Interpreter(InterpreterBase, HoldableObject): # It was likely added "because it exists", but should never be used. In # theory it is useful for directories, but we never apply modes to # directories other than in install_emptydir. - def _warn_kwarg_install_mode_sticky(self, mode: FileMode) -> None: + def _warn_kwarg_install_mode_sticky(self, mode: FileMode) -> FileMode: if mode.perms > 0 and mode.perms & stat.S_ISVTX: mlog.deprecation('install_mode with the sticky bit on a file does not do anything and will ' 'be ignored since Meson 0.64.0', location=self.current_node)