Skip to content

Commit 161298a

Browse files
committed
Fixed __eq__ for windows.
1 parent b2302c8 commit 161298a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libtmux/window.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,8 @@ def attached_pane(self) -> t.Optional["Pane"]:
552552
# Dunder
553553
#
554554
def __eq__(self, other: object) -> bool:
555-
assert isinstance(other, Window)
555+
if not isinstance(other, Window):
556+
return False
556557
return self.window_id == other.window_id
557558

558559
def __repr__(self) -> str:

0 commit comments

Comments
 (0)