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 Nov 26, 2024
1 parent 2e9ce98 commit 1362b46
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/libtmux/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down 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 1362b46

Please sign in to comment.