Skip to content

Commit b5a8677

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 576e610 commit b5a8677

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
@@ -29,7 +29,7 @@
2929
from libtmux.pane import Pane
3030

3131
from . import exc
32-
from .common import PaneDict, WindowOptionDict
32+
from .common import PaneDict
3333
from .options import OptionsMixin
3434

3535
if t.TYPE_CHECKING:
@@ -889,9 +889,12 @@ def show_window_options(self, g: bool | None = False) -> WindowOptionDict:
889889
category=DeprecationWarning,
890890
stacklevel=2,
891891
)
892-
return self._show_options(
893-
g=g,
894-
scope=OptionScope.Window,
892+
return t.cast(
893+
"WindowOptionDict",
894+
self._show_options(
895+
g=g,
896+
scope=OptionScope.Window,
897+
),
895898
)
896899

897900
def show_window_option(

0 commit comments

Comments
 (0)