Skip to content

Commit bf19b8b

Browse files
committed
chore: Remove unused type:ignore caused by fixed QueryList
1 parent 2cdbd49 commit bf19b8b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/libtmux/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def new_session(
491491
# Relations
492492
#
493493
@property
494-
def sessions(self) -> QueryList[Session]: # type:ignore
494+
def sessions(self) -> QueryList[Session]:
495495
"""Sessions contained in server.
496496
497497
Can be accessed via
@@ -512,7 +512,7 @@ def sessions(self) -> QueryList[Session]: # type:ignore
512512
return QueryList(sessions)
513513

514514
@property
515-
def windows(self) -> QueryList[Window]: # type:ignore
515+
def windows(self) -> QueryList[Window]:
516516
"""Windows contained in server's sessions.
517517
518518
Can be accessed via
@@ -531,7 +531,7 @@ def windows(self) -> QueryList[Window]: # type:ignore
531531
return QueryList(windows)
532532

533533
@property
534-
def panes(self) -> QueryList[Pane]: # type:ignore
534+
def panes(self) -> QueryList[Pane]:
535535
"""Panes contained in tmux server (across all windows in all sessions).
536536
537537
Can be accessed via
@@ -707,7 +707,7 @@ def list_sessions(self) -> t.List[Session]:
707707
return self.sessions
708708

709709
@property
710-
def children(self) -> QueryList["Session"]: # type:ignore
710+
def children(self) -> QueryList["Session"]:
711711
"""Was used by TmuxRelationalObject (but that's longer used in this class).
712712
713713
.. deprecated:: 0.16

src/libtmux/session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def from_session_id(cls, server: "Server", session_id: str) -> "Session":
9797
# Relations
9898
#
9999
@property
100-
def windows(self) -> QueryList["Window"]: # type:ignore
100+
def windows(self) -> QueryList["Window"]:
101101
"""Windows contained by session.
102102
103103
Can be accessed via
@@ -117,7 +117,7 @@ def windows(self) -> QueryList["Window"]: # type:ignore
117117
return QueryList(windows)
118118

119119
@property
120-
def panes(self) -> QueryList["Pane"]: # type:ignore
120+
def panes(self) -> QueryList["Pane"]:
121121
"""Panes contained by session's windows.
122122
123123
Can be accessed via
@@ -689,7 +689,7 @@ def list_windows(self) -> t.List["Window"]:
689689
return self.windows
690690

691691
@property
692-
def children(self) -> QueryList["Window"]: # type:ignore
692+
def children(self) -> QueryList["Window"]:
693693
"""Was used by TmuxRelationalObject (but that's longer used in this class).
694694
695695
.. deprecated:: 0.16

src/libtmux/window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def session(self) -> "Session":
108108
return Session.from_session_id(server=self.server, session_id=self.session_id)
109109

110110
@property
111-
def panes(self) -> QueryList["Pane"]: # type: ignore
111+
def panes(self) -> QueryList["Pane"]:
112112
"""Panes contained by window.
113113
114114
Can be accessed via
@@ -724,7 +724,7 @@ def list_panes(self) -> t.List["Pane"]:
724724
return self.panes
725725

726726
@property
727-
def children(self) -> QueryList["Pane"]: # type:ignore
727+
def children(self) -> QueryList["Pane"]:
728728
"""Was used by TmuxRelationalObject (but that's longer used in this class).
729729
730730
.. deprecated:: 0.16

0 commit comments

Comments
 (0)