We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d853f05 commit 969b541Copy full SHA for 969b541
libtmux/session.py
@@ -18,9 +18,12 @@
18
has_version,
19
session_check_name,
20
)
21
-from .pane import Pane
22
from .window import Window
23
+if t.TYPE_CHECKING:
24
+ from .pane import Pane
25
+
26
27
logger = logging.getLogger(__name__)
28
29
@@ -367,7 +370,7 @@ def select_window(self, target_window: str) -> Window:
367
370
return self.attached_window
368
371
369
372
@property
- def attached_pane(self) -> t.Optional[Pane]:
373
+ def attached_pane(self) -> t.Optional["Pane"]:
374
"""Return active :class:`Pane` object."""
375
376
return self.attached_window.attached_pane
0 commit comments