Skip to content

Commit b0b47c0

Browse files
committed
chore(Session): Add server instance for typings
1 parent 82bd8d1 commit b0b47c0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

libtmux/session.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
if t.TYPE_CHECKING:
2424
from .pane import Pane
25+
from .server import Server
2526

2627

2728
logger = logging.getLogger(__name__)
@@ -50,12 +51,14 @@ class Session(TmuxMappingObject, TmuxRelationalObject, EnvironmentMixin):
5051
https://man.openbsd.org/tmux.1#DESCRIPTION. Accessed April 1st, 2018.
5152
"""
5253

53-
#: unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`
5454
child_id_attribute = "window_id"
55-
#: namespace used :class:`~libtmux.common.TmuxMappingObject`
55+
"""Unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`"""
5656
formatter_prefix = "session_"
57+
"""Namespace used for :class:`~libtmux.common.TmuxMappingObject`"""
58+
server: "Server"
59+
""":class:`libtmux.server.Server` session is linked to"""
5760

58-
def __init__(self, server=None, **kwargs):
61+
def __init__(self, server: "Server", **kwargs):
5962
EnvironmentMixin.__init__(self)
6063
self.server = server
6164

0 commit comments

Comments
 (0)