Skip to content

Commit

Permalink
fix(Session.children): Add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Dec 27, 2022
1 parent 49ee95e commit 2635d18
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/libtmux/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,5 +687,11 @@ def list_windows(self) -> t.List["Window"]:
warnings.warn("Session.list_windows() is deprecated")
return self.windows

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

0 comments on commit 2635d18

Please sign in to comment.