Skip to content

Commit a5c1e1e

Browse files
committed
Server(fix[_list_panes,_update_panes]): Correct deprecation version to 0.17.0
why: These methods were deprecated in commit 7449df2 (v0.17.2), not v0.16.0. what: - Update version parameter from 0.16.0 to 0.17.0 in DeprecatedError calls - Update docstring deprecated directive from 0.16 to 0.17 - Aligns with commit ce5bb27 which corrected similar query/filter API versions
1 parent ce5bb27 commit a5c1e1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libtmux/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,21 +707,21 @@ def _list_panes(self) -> list[PaneDict]:
707707
The :py:obj:`list` is derived from ``stdout`` in
708708
:class:`util.tmux_cmd` which wraps :py:class:`subprocess.Popen`.
709709
710-
.. deprecated:: 0.16
710+
.. deprecated:: 0.17
711711
712712
Deprecated in favor of :attr:`.panes`.
713713
714714
"""
715715
raise exc.DeprecatedError(
716716
deprecated="Server._list_panes()",
717717
replacement="Server.panes property",
718-
version="0.16.0",
718+
version="0.17.0",
719719
)
720720

721721
def _update_panes(self) -> Server:
722722
"""Update internal pane data and return ``self`` for chainability.
723723
724-
.. deprecated:: 0.16
724+
.. deprecated:: 0.17
725725
726726
Deprecated in favor of :attr:`.panes` and returning ``self``.
727727
@@ -732,7 +732,7 @@ def _update_panes(self) -> Server:
732732
raise exc.DeprecatedError(
733733
deprecated="Server._update_panes()",
734734
replacement="Server.panes property",
735-
version="0.16.0",
735+
version="0.17.0",
736736
)
737737

738738
def get_by_id(self, session_id: str) -> Session | None:

0 commit comments

Comments
 (0)