Skip to content

Commit

Permalink
mypy can't get this right so let's surrpress this warning
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Nov 18, 2020
1 parent e794814 commit 1b673de
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__, **monty_props, **props)
model = create_model(monty_cls.__name__, **monty_props, **props) # type: ignore
if hasattr(monty_cls, "__doc__"):
setattr(model, "__doc__", monty_cls.__doc__)
return model

0 comments on commit 1b673de

Please sign in to comment.