| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
It looks like we'll need to bump mypy first... [UPDATE]: done ✔️ |
Sorry, something went wrong.
📝 Docs previewLast commit 215d02d at: https://d3498ba3.sqlmodel.pages.dev |
Sorry, something went wrong.
There was a problem hiding this comment.
Nice! And now we get to use annotationlib! 😎 🚀
I reviewed it thoroughly, read all the annotationlib docs and best practices document, and the implementation in Pydatnic. It all looks good to me. 🎉
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Adding support for Python 3.14 by expanding the test suite, adding the classifier, and fixing a compat issue with Pydantic.
Since pydantic/pydantic#11991 (Pydantic 2.12.0 for Python 3.14), annotations are retrieved differently. We need to do the same, or will end up with an empty dict in class_dict["annotations"], which will ultimately result in a pydantic.errors.PydanticUserError stating that a certain field requires a type annotation.
The implementation here should be bwd-compat for previous versions of Pydantic v2 (tested locally).
Note that Pydantic v1 won't be supported on Python 3.14: pydantic/pydantic#11613 (comment)