sagemath/sage-combinat-widgets

True coerces to 1

nheir opened this issue · 1 comments

nheir commented

In

if val == True: # if it's a button, reverse button toggling
val = False

prefer val is True over val == True (same with False) because of integer coercion

like

if val is True: # if it's a button, reverse button toggling
val = False

Fixed by e32cb61 and 4858e3d