From 9613f79fc87a3ae9bdcdade1dfb355ed90cd9ec0 Mon Sep 17 00:00:00 2001 From: Jochem Smit Date: Wed, 4 Dec 2024 15:17:25 +0100 Subject: [PATCH] type comparison with 'is' --- dont_fret/web/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dont_fret/web/components.py b/dont_fret/web/components.py index feb3492..892f829 100644 --- a/dont_fret/web/components.py +++ b/dont_fret/web/components.py @@ -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")