From 7ae48a723634a3389d607d8f9007da02ca87f18a 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..82904dc3a 100644 --- a/src/libtmux/window.py +++ b/src/libtmux/window.py @@ -31,7 +31,7 @@ from .options import OptionsMixin if t.TYPE_CHECKING: - from .common import PaneDict, WindowOptionDict + from .common import PaneDict from .server import Server from .session import Session @@ -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(