From b09907c269677f7201a212cbfd1443a341329b33 Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Mon, 28 Oct 2024 17:16:44 -0700 Subject: [PATCH] add check against any --- reflex/utils/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reflex/utils/types.py b/reflex/utils/types.py index 6ac8a4862..d9f51f947 100644 --- a/reflex/utils/types.py +++ b/reflex/utils/types.py @@ -738,6 +738,8 @@ def typehint_issubclass(possible_subclass: Any, possible_superclass: Any) -> boo """ if possible_superclass is Any: return True + if possible_subclass is Any: + return False provided_type_origin = get_origin(possible_subclass) accepted_type_origin = get_origin(possible_superclass)