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 Dec 21, 2024
1 parent 9aeec25 commit 846b3e1
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 @@ -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:
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 846b3e1

Please sign in to comment.