From 9c58f4d80e3570662c83908b49bff1b300b93377 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 c523ac40a..8f8361ced 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: @@ -894,9 +894,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(