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(