Skip to content

Commit

Permalink
fix create_model usage
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Oct 25, 2020
1 parent 6c0b262 commit 65e54e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emmet-core/emmet/stubs/utils.py
Expand Up @@ -154,7 +154,7 @@ def MSONable_to_pydantic(monty_cls: type, pydantic_model=None):
for field_name, field_type in _type_hints
}

model = create_model(monty_cls.__name__, field_definitions={**monty_props, **props})
model = create_model(monty_cls.__name__, **monty_props, **props)
if hasattr(monty_cls, "__doc__"):
setattr(model, "__doc__", monty_cls.__doc__)
return model

0 comments on commit 65e54e3

Please sign in to comment.