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
531
531
532
532
return QueryList (panes )
533
533
534
+ #
535
+ # Legacy: Redundant stuff we want to remove
536
+ #
534
537
def _list_panes (self ) -> t .List [PaneDict ]:
535
538
"""
536
539
Return list of panes in :py:obj:`dict` form.
@@ -539,7 +542,10 @@ def _list_panes(self) -> t.List[PaneDict]:
539
542
540
543
The :py:obj:`list` is derived from ``stdout`` in
541
544
:class:`util.tmux_cmd` which wraps :py:class:`subprocess.Popen`.
545
+
546
+ .. deprecated:: 0.16
542
547
"""
548
+ warnings .warn ("Server._list_panes() is deprecated" )
543
549
return [p .__dict__ for p in self .panes ]
544
550
545
551
def _update_panes (self ) -> "Server" :
@@ -549,13 +555,13 @@ def _update_panes(self) -> "Server":
549
555
Returns
550
556
-------
551
557
:class:`Server`
558
+
559
+ .. deprecated:: 0.16
552
560
"""
561
+ warnings .warn ("Server._update_panes() is deprecated" )
553
562
self ._list_panes ()
554
563
return self
555
564
556
- #
557
- # Legacy: Redundant stuff we want to remove
558
- #
559
565
def get_by_id (self , id : str ) -> t .Optional [Session ]:
560
566
"""
561
567
.. deprecated:: 0.16
You can’t perform that action at this time.
0 commit comments