Skip to content

Commit 2897712

Browse files
committed
chore(window.__eq__): Flip conditions
1 parent e320b87 commit 2897712

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libtmux/window.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ def attached_pane(self) -> t.Optional["Pane"]:
552552
# Dunder
553553
#
554554
def __eq__(self, other: object) -> bool:
555-
if not isinstance(other, Window):
556-
return False
557-
return self.window_id == other.window_id
555+
if isinstance(other, Window):
556+
return self.window_id == other.window_id
557+
return False
558558

559559
def __repr__(self) -> str:
560560
return "{}({} {}:{}, {})".format(

0 commit comments

Comments
 (0)