Releases: explosion/confection
v1.0.0.dev0: Update for Pydantic v2 (and Python 3.13), refactor
Previously confection did three tree operations simultaneously (in the registry._fill method):
- Build a version of the config with defaults in-place
- Build a modified version suitable for validation
- Build an output version with promises resolved
The fact that all three were being built at once made the code quite hard to update for Pydantic 2, and just difficult to work with in general. I've therefore refactored the code so that these are separate processes that apply to the whole tree at once.
A bonus of this is that we now build a model for the whole config and validate against that, which means all the validation errors for the config should come in at once, instead of only getting validation errors for one promise at a time.
Updating to Pydantic v2 will let spaCy finally support Python 3.13.
v0.1.5
✨ Fixes and features
- Fixes #47: Ensure config with
*
can be filled (#53) - Allow
typing-extensions<5.0.0
for Python < 3.8 (#63) - Update CI (#64)
👥 Contributors
@adrianeboyd, @honnibal, @ines, @KennethEnevoldsen, @MartinBernstorff, @svlandeg
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
v0.0.4
- Extend support for
typing_extensions
to v4.4.x for Python 3.6 and 3.7. - Add
pyproject.toml
to source package.
v0.0.3
- Extend support to pydantic v1.10.x.
v0.0.2
- Add
py.typed
to package. - Switch to mypy 0.981 for fixes related to Python 3.10.7 and NumPy.
- Update README.