Skip to content

Commit 748f325

Browse files
committed
!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]
1 parent dc484ad commit 748f325

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/libtmux/window.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,12 @@ def show_window_options(self, g: bool | None = False) -> WindowOptionDict:
845845
category=DeprecationWarning,
846846
stacklevel=2,
847847
)
848-
return self._show_options(
849-
g=g,
850-
scope=OptionScope.Window,
848+
return t.cast(
849+
WindowOptionDict,
850+
self._show_options(
851+
g=g,
852+
scope=OptionScope.Window,
853+
),
851854
)
852855

853856
def show_window_option(

0 commit comments

Comments
 (0)