From ef062f53b4a09107b7901a0b5b6e42bd6bbad7c1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 20 Jul 2024 07:31:22 -0500 Subject: [PATCH] !squash to feat(Window): scope param for Window.{set,show}_option src/libtmux/window.py:848: error: Returning Any from function declared to return "dict[str, Any]" [no-any-return] --- src/libtmux/window.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/libtmux/window.py b/src/libtmux/window.py index 2b9ab325d..9932d8204 100644 --- a/src/libtmux/window.py +++ b/src/libtmux/window.py @@ -27,7 +27,7 @@ from libtmux.pane import Pane from . import exc -from .common import PaneDict, WindowOptionDict +from .common import PaneDict from .options import OptionsMixin if t.TYPE_CHECKING: @@ -845,9 +845,12 @@ def show_window_options(self, g: bool | None = False) -> WindowOptionDict: category=DeprecationWarning, stacklevel=2, ) - return self._show_options( - g=g, - scope=OptionScope.Window, + return t.cast( + "WindowOptionDict", + self._show_options( + g=g, + scope=OptionScope.Window, + ), ) def show_window_option(