From 65e54e37bf951918e3b7b62397a0050ae2e49065 Mon Sep 17 00:00:00 2001 From: Shyam D Date: Sat, 24 Oct 2020 22:02:43 -0700 Subject: [PATCH] fix create_model usage --- emmet-core/emmet/stubs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emmet-core/emmet/stubs/utils.py b/emmet-core/emmet/stubs/utils.py index 73eeecda4e..8f7f5dfda3 100644 --- a/emmet-core/emmet/stubs/utils.py +++ b/emmet-core/emmet/stubs/utils.py @@ -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