From 86d335007ae82e67c0d792e8068957828b25455e Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Wed, 5 Feb 2025 15:32:09 -0800 Subject: [PATCH] switch ordering --- reflex/vars/object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/vars/object.py b/reflex/vars/object.py index 3700452a4..189c8fd78 100644 --- a/reflex/vars/object.py +++ b/reflex/vars/object.py @@ -267,9 +267,9 @@ class ObjectVar(Var[OBJECT_TYPE], python_types=Mapping): fixed_type = var_type if isclass(var_type) else get_origin(var_type) if ( - (isclass(fixed_type) and not issubclass(fixed_type, Mapping)) + is_typeddict(fixed_type) + or (isclass(fixed_type) and not issubclass(fixed_type, Mapping)) or (fixed_type in types.UnionTypes) - or is_typeddict(fixed_type) ): attribute_type = get_attribute_access_type(var_type, name) if attribute_type is None: