From 488456845ac7548cace3ae16ea8fafb7d95ab9ba Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Sat, 12 Jul 2025 03:31:09 +0200 Subject: [PATCH] fix attribute check for SQLAlchemy labeled column properties --- reflex/utils/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/utils/types.py b/reflex/utils/types.py index 1ad8cd830e0..6b83486cf7f 100644 --- a/reflex/utils/types.py +++ b/reflex/utils/types.py @@ -478,7 +478,7 @@ def get_attribute_access_type(cls: GenericType, name: str) -> GenericType | None if type_ in PrimitiveToAnnotation: type_ = PrimitiveToAnnotation[type_] type_ = type_[item_type] # pyright: ignore [reportIndexIssue] - if column.nullable: + if hasattr(column, "nullable") and column.nullable: type_ = type_ | None return type_ if name in insp.all_orm_descriptors: