pydantic-core
pydantic-core copied to clipboard
Core validation logic for pydantic written in rust
See https://github.com/pydantic/pydantic-core/pull/1236#issuecomment-2012366184 for a more in depth description :)
## Change Summary ## Related issue number fix #1348 ## Checklist * [x] Unit tests for the changes exist * [ ] Documentation reflects the changes where applicable * [x]...
Bumps [idna](https://github.com/servo/rust-url) from 0.5.0 to 1.0.1. Release notes Sourced from idna's releases. idna v1.0.1 What's Changed fix panic on xn--55555577 by @Byron in servo/rust-url#940 Update idna to 1.0.1 by @valenting...
`pydantic-core` build script ignores virtual-enviroment: ```shell $ pip3 install typing-extensions Requirement already satisfied: typing-extensions in /venv/lib/python3.11/site-packages (4.12.2) $ poetry install -v --no-root ... Compiling pydantic-core v2.20.0 (/tmp/tmp556rg92p/pydantic_core-2.20.0) error: failed to...
BaseModel.model_dump[_xxx](serialize_as_any = True) breaks with models with recursive attribute types (not values) https://github.com/pydantic/pydantic/issues/9670 ## Related issue number fix https://github.com/pydantic/pydantic/issues/9670 ## Checklist * [ ] Unit tests for the changes exist...
## Change Summary This PR addresses the issue of serializing the utcoffset when using `zoneinfo` in the `time` function. ## Related issue number This can be considered the first step...
``` > python3.13-nogil -c 'import pydantic_core' fish: Job 1, 'python3.13-nogil -c 'import pyd…' terminated by signal SIGSEGV (Address boundary error) ``` Installed with `pip install --upgrade git+https://github.com/pydantic/pydantic-core.git@main`
issue [pydantic #9683](https://github.com/pydantic/pydantic/issues/9683)
## Change Summary `ser_json_bytes` transforms values (with base64 encoding) during serialization. But validation doesn't do a complementary base64 decode, so a serialization round-trip into the same model type yields an...
Basic implementation here - #1321 Context: https://github.com/pydantic/pydantic-core/pull/1322#issuecomment-2166806100 https://github.com/pydantic/pydantic/pull/9708#issuecomment-2187337782 fail-fast feature might be extended and used not only for sequence types. It might be useful for other types like mappings or...