Skip to content

Commit 42cf44f

Browse files
committed
avoid 1 == True evaluation
1 parent df1fbd4 commit 42cf44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sage_combinat_widgets/grid_view_editor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def remove_cell(self, change):
714714
if self.donottrack or change.name == 'value':
715715
return
716716
val = change.new
717-
if val == True: # if it's a button, reverse button toggling
717+
if val is True: # if it's a button, reverse button toggling
718718
val = False
719719
pos = extract_coordinates(change.name)
720720
# Dirty _addable_ cells can be removed

0 commit comments

Comments
 (0)