Skip to content

Commit e320b87

Browse files
m1guelpereztony
authored andcommitted
Fixed __eq__ for windows.
1 parent 4d51e53 commit e320b87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libtmux/window.py

Lines changed: 2 additions & 1 deletion
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)