Skip to content

Commit 2635d18

Browse files
committed
fix(Session.children): Add deprecation warning
1 parent 49ee95e commit 2635d18

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/libtmux/session.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -687,5 +687,11 @@ def list_windows(self) -> t.List["Window"]:
687687
warnings.warn("Session.list_windows() is deprecated")
688688
return self.windows
689689

690-
#: Was used by TmuxRelationalObject (but that's longer used in this class)
691-
children = windows
690+
@property
691+
def children(self) -> QueryList["Window"]: # type:ignore
692+
"""Was used by TmuxRelationalObject (but that's longer used in this class)
693+
694+
.. deprecated:: 0.16
695+
"""
696+
warnings.warn("Session.children is deprecated")
697+
return self.windows

0 commit comments

Comments
 (0)