Skip to content

Commit fa47cdb

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 efe6884 commit fa47cdb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/libtmux/window.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from libtmux.pane import Pane
2828

2929
from . import exc
30-
from .common import PaneDict, WindowOptionDict
30+
from .common import PaneDict
3131
from .options import OptionsMixin
3232

3333
if t.TYPE_CHECKING:
@@ -894,9 +894,12 @@ def show_window_options(self, g: bool | None = False) -> WindowOptionDict:
894894
category=DeprecationWarning,
895895
stacklevel=2,
896896
)
897-
return self._show_options(
898-
g=g,
899-
scope=OptionScope.Window,
897+
return t.cast(
898+
"WindowOptionDict",
899+
self._show_options(
900+
g=g,
901+
scope=OptionScope.Window,
902+
),
900903
)
901904

902905
def show_window_option(

0 commit comments

Comments
 (0)