Skip to content

Commit 226fb02

Browse files
committed
Fix a type issue
1 parent bcb702e commit 226fb02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisvl/schema/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ def _make_field(storage_type, **field_inputs) -> BaseField:
170170

171171
@root_validator(pre=True)
172172
@classmethod
173-
def validate_and_create_fields(cls, values):
173+
def validate_and_create_ields(cls, values: Dict[str, Any]) -> Dict[str, Any]:
174174
"""
175175
Validate uniqueness of field names and create valid field instances.
176176
"""
177177
# Ensure index is a dictionary for validation
178-
index = values.get("index")
178+
index = values.get("index", {})
179179
if not isinstance(index, IndexInfo):
180180
index = IndexInfo(**index)
181181

0 commit comments

Comments
 (0)