File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ $ pip install --user --upgrade --pre libtmux
14
14
15
15
<!-- Maintainers and contributors: Insert change notes for the next release above -->
16
16
17
+ ### Improvement
18
+
19
+ - ` Window.__eq__ ` now returns ` False ` instead of raising ` AssertionError ` , thank
20
+ you @m1guelperez ! (#505 )
21
+
17
22
## libtmux 0.24.1 (2023-11-23)
18
23
19
24
### Packaging
Original file line number Diff line number Diff line change @@ -552,8 +552,9 @@ def attached_pane(self) -> t.Optional["Pane"]:
552
552
# Dunder
553
553
#
554
554
def __eq__ (self , other : object ) -> bool :
555
- assert isinstance (other , Window )
556
- return self .window_id == other .window_id
555
+ if isinstance (other , Window ):
556
+ return self .window_id == other .window_id
557
+ return False
557
558
558
559
def __repr__ (self ) -> str :
559
560
return "{}({} {}:{}, {})" .format (
You can’t perform that action at this time.
0 commit comments