From 92190c2137a8c0af27bf3d311b3e264b61e4cc38 Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Tue, 22 Oct 2024 14:48:06 -0700 Subject: [PATCH] add note for UnionType --- reflex/event.py | 1 + 1 file changed, 1 insertion(+) diff --git a/reflex/event.py b/reflex/event.py index fb00dd4a0..b354bc144 100644 --- a/reflex/event.py +++ b/reflex/event.py @@ -1100,6 +1100,7 @@ def call_event_handler( # Check if both are concrete types (e.g., int) return issubclass(provided_type, accepted_type) + # Remove this check when Python 3.10 is the minimum supported version if hasattr(types, "UnionType"): provided_type_origin = ( Union