File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -531,6 +531,9 @@ def panes(self) -> QueryList[Pane]: # type:ignore
531531
532532 return QueryList (panes )
533533
534+ #
535+ # Legacy: Redundant stuff we want to remove
536+ #
534537 def _list_panes (self ) -> t .List [PaneDict ]:
535538 """
536539 Return list of panes in :py:obj:`dict` form.
@@ -539,7 +542,10 @@ def _list_panes(self) -> t.List[PaneDict]:
539542
540543 The :py:obj:`list` is derived from ``stdout`` in
541544 :class:`util.tmux_cmd` which wraps :py:class:`subprocess.Popen`.
545+
546+ .. deprecated:: 0.16
542547 """
548+ warnings .warn ("Server._list_panes() is deprecated" )
543549 return [p .__dict__ for p in self .panes ]
544550
545551 def _update_panes (self ) -> "Server" :
@@ -549,13 +555,13 @@ def _update_panes(self) -> "Server":
549555 Returns
550556 -------
551557 :class:`Server`
558+
559+ .. deprecated:: 0.16
552560 """
561+ warnings .warn ("Server._update_panes() is deprecated" )
553562 self ._list_panes ()
554563 return self
555564
556- #
557- # Legacy: Redundant stuff we want to remove
558- #
559565 def get_by_id (self , id : str ) -> t .Optional [Session ]:
560566 """
561567 .. deprecated:: 0.16
You can’t perform that action at this time.
0 commit comments