You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "..../api/m_example.py", line 4, in <module>
class Revision(EmbeddedModel):
File ".../lib/python3.8/site-packages/odmantic/model.py", line 443, in __new__
mcs.__validate_cls_namespace__(name, namespace)
File .../lib/python3.8/site-packages/odmantic/model.py", line 290, in __validate_cls_namespace__
parse_obj_as(field_type, value)
File "pydantic/tools.py", line 35, in pydantic.tools.parse_obj_as
File "pydantic/main.py", line 360, in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 955, in pydantic.main.validate_model
pydantic.errors.ConfigError: field "__root__" not yet prepared so type is still a ForwardRef, you might need to call ParsingModel[ForwardRef('User')].update_forward_refs().
The text was updated successfully, but these errors were encountered:
I have a code like this:
It yields this error:
The text was updated successfully, but these errors were encountered: