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
I used the GitHub search to find a similar question and didn't find it.
I searched the FastAPI documentation, with the integrated search.
I already searched in Google "How to X in FastAPI" and didn't find any information.
I already read and followed all the tutorial in the docs and didn't find an answer.
I already checked if it is not related to FastAPI but to Pydantic.
I already checked if it is not related to FastAPI but to Swagger UI.
I already checked if it is not related to FastAPI but to ReDoc.
Commit to Help
I commit to help with one of those options 👆
Example Code
NA
Description
from pydantic.typing import evaluate_forwardref, get_args, get_origin
ImportError: cannot import name 'get_args' from 'pydantic.typing' (/Users/yfeng/Library/Caches/pypoetry/virtualenvs/aips-cq-resource-api-F3u0rVOe-py3.8/lib/python3.8/site-packages/pydantic/typing.cpython-38-darwin.so)
In fastapi=0.95.2, the dependency on pydantic is here which indicates pydantic=1.6.2 can be used. But get_args is only available in pydantic>=1.7, while pydantic=1.6.2code doesn't have this
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.95.2
Python Version
3.8
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Discussed in #9565
Originally posted by ZiChuanBuXiu May 23, 2023
First Check
Commit to Help
Example Code
NA
Description
In
fastapi=0.95.2
, the dependency onpydantic
is here which indicatespydantic=1.6.2
can be used. Butget_args
is only available inpydantic>=1.7
, whilepydantic=1.6.2
code doesn't have thisOperating System
macOS
Operating System Details
No response
FastAPI Version
0.95.2
Python Version
3.8
Additional Context
No response
The text was updated successfully, but these errors were encountered: