Skip to content

Commit 19aae77

Browse files
fix attribute check for SQLAlchemy labeled column properties (#5567)
1 parent 5b2addf commit 19aae77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

reflex/utils/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def get_attribute_access_type(cls: GenericType, name: str) -> GenericType | None
478478
if type_ in PrimitiveToAnnotation:
479479
type_ = PrimitiveToAnnotation[type_]
480480
type_ = type_[item_type] # pyright: ignore [reportIndexIssue]
481-
if column.nullable:
481+
if hasattr(column, "nullable") and column.nullable:
482482
type_ = type_ | None
483483
return type_
484484
if name in insp.all_orm_descriptors:

0 commit comments

Comments
 (0)