How to fix this bug?
nissansz opened this issue · 2 comments
nissansz commented
Privileged issue
- I'm @tiangolo or he asked me directly to create an issue here.
Issue Content
Python3.8.8\lib\site-packages\fastapi\params.py", line 4, in
from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (D:\Python3.8.8\lib\site-packages\pydantic\fields.py)
JavierSanchezCastro commented
Is this a FastAPI problem? If so, which versions of FastAPI and Pydantic are you using?
nissansz commented
I don't know which caused the problem.
fastapi 0.108.0
pydantic 2.5.3
pydantic_core 2.14.6