Skip to content

Commit a1cdae3

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 f899adf commit a1cdae3

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:
@@ -845,9 +845,12 @@ def show_window_options(self, g: bool | None = False) -> WindowOptionDict:
845845
category=DeprecationWarning,
846846
stacklevel=2,
847847
)
848-
return self._show_options(
849-
g=g,
850-
scope=OptionScope.Window,
848+
return t.cast(
849+
"WindowOptionDict",
850+
self._show_options(
851+
g=g,
852+
scope=OptionScope.Window,
853+
),
851854
)
852855

853856
def show_window_option(

0 commit comments

Comments
 (0)