Skip to content

Commit bb9b6ff

Browse files
committed
More code docs
1 parent 5c77510 commit bb9b6ff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tmuxp/server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ def attach_session(self, target_session=None):
365365
:param: target_session: str. name of the session. fnmatch(3) works.
366366
367367
"""
368-
# tmux('switch-client', '-t', target_session)
369368
tmux_args = tuple()
370369
if target_session:
371370
tmux_args += ('-t%s' % target_session,)

tmuxp/window.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ def _list_panes(self):
382382

383383
@property
384384
def _panes(self):
385+
"""Return list of the windows' panes as :py:obj:`dict`.
386+
387+
:rtype: list
388+
389+
"""
385390
return self._list_panes()
386391

387392
def list_panes(self):
@@ -395,5 +400,7 @@ def list_panes(self):
395400

396401
@property
397402
def panes(self):
403+
"""Return a :py:obj:`list` of the windows' :class:`Pane` objects."""
398404
return self.list_panes()
405+
#: Alias of :attr:`panes`.
399406
children = panes

0 commit comments

Comments
 (0)