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
{{ message }}
This repository was archived by the owner on Apr 15, 2025. It is now read-only.
When these three conditions are present, importing prisma will generate an error:
A model exists which is named Field.
Another model exists with a Json typed field.
This second model has a field name fields referring to a list of Fields.
In this case, when Pydantic resolves the reference, the model fields are in the local namespace. This causes fields to match the model field instead of the fields module that contains the Json field type.
This is the resulting error:
[...]
File "[...]/python/3.10.13/lib/python3.10/typing.py", line 695, in _evaluate
eval(self.__forward_code__, globalns, localns),
File "<string>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'Json'