polyfactory
polyfactory copied to clipboard
Enhancement: support 3.14
Summary
- Update CI to test against 3.14
- Resolve any bugs
Basic Example
No response
Drawbacks and Impact
No response
Unresolved questions
No response
From my tests, it works well, but the biggest problem here is the lack of compatibility of Pydantic V1 with Python 3.14 and newer... Thus running tests using polyfactory on Python 3.14 triggers this warning, see also #759 :
.venv/lib/python3.14/site-packages/polyfactory/factories/pydantic_factory.py:85
/foobar/.venv/lib/python3.14/site-packages/polyfactory/factories/pydantic_factory.py:85: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
import pydantic.v1 as pydantic_v1 # type: ignore[no-redef]
Running tests against main and seeing issues with
- https://github.com/jcrist/msgspec/issues/926 f
- And pydantic v1 issues and warnings
This is a great thing! It is necessary!
msgspec support for 3.14 has landed https://github.com/jcrist/msgspec/releases/tag/0.20.0