Skip to content

Commit 327e85e

Browse files
committed
Window(fix[show_window_option]): Use public show_option() API
why: Deprecated method should guide users to public API, not private what: - Update docstring to reference show_option() instead of _show_option() - Change method call from _show_option() to show_option() - Aligns with show_window_options() which correctly uses show_options()
1 parent 74c9681 commit 327e85e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libtmux/window.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -897,19 +897,19 @@ def show_window_option(
897897
option: str,
898898
g: bool = False,
899899
) -> str | int | None:
900-
"""Return option for target window. Deprecated by :meth:`Window._show_option()`.
900+
"""Return option for target window. Deprecated by :meth:`Window.show_option()`.
901901
902902
.. deprecated:: 0.26
903903
904-
Deprecated by :meth:`Window._show_option()`.
904+
Deprecated by :meth:`Window.show_option()`.
905905
906906
"""
907907
warnings.warn(
908908
"Window.show_window_option() is deprecated",
909909
category=DeprecationWarning,
910910
stacklevel=2,
911911
)
912-
return self._show_option(
912+
return self.show_option(
913913
option=option,
914914
g=g,
915915
scope=OptionScope.Window,

0 commit comments

Comments
 (0)