We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d23b27 commit 412c267Copy full SHA for 412c267
aredis_om/model/model.py
@@ -1375,7 +1375,7 @@ def outer_type_or_annotation(field: FieldInfo):
1375
return field.annotation.__args__[0] # type: ignore
1376
1377
1378
-def should_index_field(field_info: FieldInfo | PydanticFieldInfo) -> bool:
+def should_index_field(field_info: Union[FieldInfo, PydanticFieldInfo]) -> bool:
1379
# for vector, full text search, and sortable fields, we always have to index
1380
# We could require the user to set index=True, but that would be a breaking change
1381
index = getattr(field_info, "index", None) is True
0 commit comments