0.7.0
0.111.0
/home/kevin/.../venv/lib/python3.11/site-packages/pydantic/_migration.py:283: UserWarning: `pydantic.utils:version_info` has been moved to `pydantic.version:version_info`.
warnings.warn(f'`{import_path}` has been moved to `{new_location}`.')
pydantic version: 2.7.4
pydantic-core version: 2.18.4
pydantic-core build: profile=release pgo=true
install path: /home/kevin/.../venv/lib/python3.11/site-packages/pydantic
python version: 3.11.6 (main, Oct 8 2023, 05:06:43) [GCC 13.2.0]
platform: Linux-6.5.0-41-generic-x86_64-with-glibc2.38
related packages: typing_extensions-4.12.2 fastapi-0.111.0
commit: unknown
Python version, get it with:
3.11.6
Additional context
Add any other context about the problem here.
Describe the bug If I'm using Pydantic 2, cbv.py imports package
typing_inspect
. However this is listed as an optional dependency.To Reproduce Steps to reproduce the behavior:
fastapi dev ...
Expected behavior It doesn't crash
Screenshots
Environment:
0.3.0
], get them with:^ This also fails to run w/o typing_inspect.
After installing it:
3.11.6
Additional context Add any other context about the problem here.