Skip to content

Commit

Permalink
!squash to feat(Window): scope param for Window.{set,show}_option
Browse files Browse the repository at this point in the history
src/libtmux/window.py:848: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
  • Loading branch information
tony committed Oct 13, 2024
1 parent 1b9da12 commit 8b29509
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/libtmux/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8b29509

Please sign in to comment.