Pydantic

Latest version: v2.10.4

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 21 of 26

0.20.0a1

* **breaking change** (maybe): more sophisticated argument parsing for validators, any subset of
`values`, `config` and `field` is now permitted, eg. `(cls, value, field)`,
however the variadic key word argument ("`**kwargs`") **must** be called `kwargs`, [388](https://github.com/pydantic/pydantic/pull/388) by samuelcolvin
* **breaking change**: Adds `skip_defaults` argument to `BaseModel.dict()` to allow skipping of fields that
were not explicitly set, signature of `Model.construct()` changed, [389](https://github.com/pydantic/pydantic/pull/389) by dgasmith
* add `py.typed` marker file for PEP-561 support, [391](https://github.com/pydantic/pydantic/pull/391) by je-l
* Fix `extra` behaviour for multiple inheritance/mix-ins, [394](https://github.com/pydantic/pydantic/pull/394) by YaraslauZhylko

0.19.0

* Support `Callable` type hint, fix [279](https://github.com/pydantic/pydantic/pull/279) by proofit404
* Fix schema for fields with `validator` decorator, fix [375](https://github.com/pydantic/pydantic/pull/375) by tiangolo
* Add `multiple_of` constraint to `ConstrainedDecimal`, `ConstrainedFloat`, `ConstrainedInt`
and their related types `condecimal`, `confloat`, and `conint` [371](https://github.com/pydantic/pydantic/pull/371), thanks StephenBrown2
* Deprecated `ignore_extra` and `allow_extra` Config fields in favor of `extra`, [352](https://github.com/pydantic/pydantic/pull/352) by liiight
* Add type annotations to all functions, test fully with mypy, [373](https://github.com/pydantic/pydantic/pull/373) by samuelcolvin
* fix for 'missing' error with `validate_all` or `validate_always`, [381](https://github.com/pydantic/pydantic/pull/381) by samuelcolvin
* Change the second/millisecond watershed for date/datetime parsing to `2e10`, [385](https://github.com/pydantic/pydantic/pull/385) by samuelcolvin

0.18.2

Not secure
* Fix to schema generation with `Optional` fields, fix [361](https://github.com/pydantic/pydantic/pull/361) by samuelcolvin

0.18.1

Not secure
* add `ConstrainedBytes` and `conbytes` types, [315](https://github.com/pydantic/pydantic/pull/315) Gr1N
* adding `MANIFEST.in` to include license in package `.tar.gz`, [358](https://github.com/pydantic/pydantic/pull/358) by samuelcolvin

0.18.0

* **breaking change**: don't call validators on keys of dictionaries, [254](https://github.com/pydantic/pydantic/pull/254) by samuelcolvin
* Fix validators with `always=True` when the default is `None` or the type is optional, also prevent
`whole` validators being called for sub-fields, fix [132](https://github.com/pydantic/pydantic/pull/132) by samuelcolvin
* improve documentation for settings priority and allow it to be easily changed, [343](https://github.com/pydantic/pydantic/pull/343) by samuelcolvin
* fix `ignore_extra=False` and `allow_population_by_alias=True`, fix [257](https://github.com/pydantic/pydantic/pull/257) by samuelcolvin
* **breaking change**: Set `BaseConfig` attributes `min_anystr_length` and `max_anystr_length` to
`None` by default, fix [349](https://github.com/pydantic/pydantic/pull/349) in [#350](https://github.com/pydantic/pydantic/pull/350) by tiangolo
* add support for postponed annotations, [348](https://github.com/pydantic/pydantic/pull/348) by samuelcolvin

0.17.0

* fix schema for `timedelta` as number, [325](https://github.com/pydantic/pydantic/pull/325) by tiangolo
* prevent validators being called repeatedly after inheritance, [327](https://github.com/pydantic/pydantic/pull/327) by samuelcolvin
* prevent duplicate validator check in ipython, fix [312](https://github.com/pydantic/pydantic/pull/312) by samuelcolvin
* add "Using Pydantic" section to docs, [323](https://github.com/pydantic/pydantic/pull/323) by tiangolo & [#326](https://github.com/pydantic/pydantic/pull/326) by samuelcolvin
* fix schema generation for fields annotated as `: dict`, `: list`,
`: tuple` and `: set`, [330](https://github.com/pydantic/pydantic/pull/330) & [#335](https://github.com/pydantic/pydantic/pull/335) by nkonin
* add support for constrained strings as dict keys in schema, [332](https://github.com/pydantic/pydantic/pull/332) by tiangolo
* support for passing Config class in dataclasses decorator, [276](https://github.com/pydantic/pydantic/pull/276) by jarekkar
(**breaking change**: this supersedes the `validate_assignment` argument with `config`)
* support for nested dataclasses, [334](https://github.com/pydantic/pydantic/pull/334) by samuelcolvin
* better errors when getting an `ImportError` with `PyObject`, [309](https://github.com/pydantic/pydantic/pull/309) by samuelcolvin
* rename `get_validators` to `__get_validators__`, deprecation warning on use of old name, [338](https://github.com/pydantic/pydantic/pull/338) by samuelcolvin
* support `ClassVar` by excluding such attributes from fields, [184](https://github.com/pydantic/pydantic/pull/184) by samuelcolvin

Page 21 of 26

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.