Skip to content

Commit

Permalink
type comparison with 'is'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Dec 4, 2024
1 parent 95f20f5 commit 9613f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dont_fret/web/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def inputtext_cb(new_value: str) -> None:
value = vtype(new_value)

except ValueError:
if vtype == int:
if vtype is int:
message.set("Input must be an integer")
else:
message.set("Input must be a number")
Expand Down

0 comments on commit 9613f79

Please sign in to comment.