Skip to content

Commit c82c033

Browse files
committed
chore(relational attributes): Fix docstrings
1 parent 8604bce commit c82c033

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

libtmux/pane.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Pane(TmuxMappingObject, TmuxRelationalObject):
2727
``Pane`` instances can send commands directly to a pane, or traverse
2828
between linked tmux objects.
2929
30-
Parameters
30+
Attributes
3131
----------
3232
window : :class:`Window`
3333
@@ -49,14 +49,14 @@ class Pane(TmuxMappingObject, TmuxRelationalObject):
4949
Accessed April 1st, 2018.
5050
"""
5151

52-
#: namespace used :class:`~libtmux.common.TmuxMappingObject`
5352
formatter_prefix = "pane_"
54-
#: :class:`libtmux.window.Window` pane is linked to
53+
"""Namespace used for :class:`~libtmux.common.TmuxMappingObject`"""
5554
window: "Window"
56-
#: :class:`libtmux.session.Session` pane is linked to
55+
""":class:`libtmux.Window` pane is linked to"""
5756
session: "Session"
58-
#: :class:`libtmux.server.Server` pane is linked to
57+
""":class:`libtmux.Session` pane is linked to"""
5958
server: "Server"
59+
""":class:`libtmux.Server` pane is linked to"""
6060

6161
def __init__(self, window: "Window", **kwargs):
6262
self.window = window

libtmux/server.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ class Server(TmuxRelationalObject, EnvironmentMixin):
6060
Accessed April 1st, 2018.
6161
"""
6262

63-
#: ``[-L socket-name]``
6463
socket_name = None
65-
#: ``[-S socket-path]``
64+
"""Passthrough to ``[-L socket-name]``"""
6665
socket_path = None
67-
#: ``[-f file]``
66+
"""Passthrough to ``[-S socket-path]``"""
6867
config_file = None
69-
#: ``-2`` or ``-8``
68+
"""Passthrough to ``[-f file]``"""
7069
colors = None
71-
#: unique child ID used by :class:`~libtmux.common.TmuxRelationalObject`
70+
"""``-2`` or ``-8``"""
7271
child_id_attribute = "session_id"
73-
#: namespace used :class:`~libtmux.common.TmuxMappingObject`
72+
"""Unique child ID used by :class:`~libtmux.common.TmuxRelationalObject`"""
7473
formatter_prefix = "server_"
74+
"""Namespace used for :class:`~libtmux.common.TmuxMappingObject`"""
7575

7676
def __init__(
7777
self,

libtmux/session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ class Session(TmuxMappingObject, TmuxRelationalObject, EnvironmentMixin):
5151
https://man.openbsd.org/tmux.1#DESCRIPTION. Accessed April 1st, 2018.
5252
"""
5353

54-
#: unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`
5554
child_id_attribute = "window_id"
56-
#: namespace used :class:`~libtmux.common.TmuxMappingObject`
55+
"""Unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`"""
5756
formatter_prefix = "session_"
58-
#: :class:`libtmux.server.Server` session is linked to
57+
"""Namespace used for :class:`~libtmux.common.TmuxMappingObject`"""
5958
server: "Server"
59+
""":class:`libtmux.server.Server` session is linked to"""
6060

6161
def __init__(self, server: "Server", **kwargs):
6262
EnvironmentMixin.__init__(self)

libtmux/window.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ class Window(TmuxMappingObject, TmuxRelationalObject):
4545
https://man.openbsd.org/tmux.1#DESCRIPTION. Accessed April 1st, 2018.
4646
"""
4747

48-
#: unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`
4948
child_id_attribute = "pane_id"
50-
#: namespace used :class:`~libtmux.common.TmuxMappingObject`
49+
"""Unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`"""
5150
formatter_prefix = "window_"
52-
#: :class:`libtmux.server.Server` window is linked to
51+
"""Namespace used for :class:`~libtmux.common.TmuxMappingObject`"""
5352
server: "Server"
54-
#: :class:`libtmux.session.Session` window is linked to
53+
""":class:`libtmux.Server` window is linked to"""
5554
session: "Session"
55+
""":class:`libtmux.Session` window is linked to"""
5656

5757
def __init__(self, session: "Session", **kwargs):
5858
self.session = session

0 commit comments

Comments
 (0)