Skip to content

Commit 7ae48a7

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 bef88ad commit 7ae48a7

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
@@ -31,7 +31,7 @@
3131
from .options import OptionsMixin
3232

3333
if t.TYPE_CHECKING:
34-
from .common import PaneDict, WindowOptionDict
34+
from .common import PaneDict
3535
from .server import Server
3636
from .session import Session
3737

@@ -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)