Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Jan 9, 2025
1 parent bfe0274 commit 223dc1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dipdup/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ def parse_object(

# NOTE: Might be `from_` or other reserved keyword
field_k = '{k}_ ' if k not in type_.model_fields else k
nested_type = type_.model_fields[field_k].annotation # type: ignore[arg-type]
model_dict[k] = parse_object(nested_type, v, plain=True)
nested_type = type_.model_fields[field_k].annotation
model_dict[k] = parse_object(nested_type, v, plain=True) # type: ignore[arg-type]

return type_(**model_dict)
except ValidationError as e:
Expand Down

0 comments on commit 223dc1f

Please sign in to comment.