-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support pydantic v2 & test on pre-releases? #146
Comments
Hi @effigies, thanks for raising the issue. I was actually expecting to see an issue like this to be opened in regard to the upcoming pydantic v2 release. In general, I have not started to take a closer look at all the incompatibilities with pydantic v2. Currently, I won't be able to do so, unfortunately 😟. I'm happy to assist with code reviews and guidance whenever possible. Help wanted! 🙏 I expect that it's going to be a serious effort to make autodoc_pydantic work with the new pydantic major release for 2 main reasons:
However, there are plenty of tests that help to reveal any incompatibility quickly. As of yet, there is no final migration guide for pydantic v2. Judging the current state of the docs, it might make sense wait at least a little bit longer. For example, |
There is currently some great progress regarding pydantic v2 support 😃. A large body of work was already merged via #160 which makes the tests pass for More work is currently tracked via #162. Any help/review is highly welcome. |
You can now test the new autodoc_pydantic version supporting pydantic v2 via Any feedback is more than appreciated. The current autodoc_pydantic version |
Release for v2 is now on pypi 😃. You can get the latest version via |
I just started testing a project using Pydantic using
pip install --pre
, and I get the following result when attempting to build documentation:It seems there are some incompatibilities with the upcoming 2.0 release.
The text was updated successfully, but these errors were encountered: