Skip to content

Commit 92f430f

Browse files
committed
Move SessionDict, WindowDict, and PaneDict to common to use across children objects
1 parent 92a7953 commit 92f430f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

libtmux/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#: Most recent version of tmux supported
2626
TMUX_MAX_VERSION = "2.4"
2727

28+
SessionDict = t.Dict[str, t.Any]
29+
WindowDict = t.Dict[str, t.Any]
30+
PaneDict = t.Dict[str, t.Any]
31+
2832

2933
class EnvironmentMixin:
3034

libtmux/server.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111
from . import exc, formats
1212
from .common import (
1313
EnvironmentMixin,
14+
PaneDict,
15+
SessionDict,
1416
TmuxRelationalObject,
17+
WindowDict,
1518
has_gte_version,
1619
session_check_name,
1720
tmux_cmd,
1821
)
1922
from .session import Session
2023

21-
SessionDict = t.Dict[str, t.Any]
22-
WindowDict = t.Dict[str, t.Any]
23-
PaneDict = t.Dict[str, t.Any]
24-
2524
logger = logging.getLogger(__name__)
2625

2726

0 commit comments

Comments
 (0)