Pydantic

Latest version: v2.7.4

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

Scan your dependencies

Page 10 of 23

1.10.0b1

Not secure
Pre-release, see [the GitHub release](https://github.com/pydantic/pydantic/releases/tag/v1.10.0b1) for details.

1.10.0a2

Not secure
Pre-release, see [the GitHub release](https://github.com/pydantic/pydantic/releases/tag/v1.10.0a2) for details.

1.10.0a1

Not secure
Pre-release, see [the GitHub release](https://github.com/pydantic/pydantic/releases/tag/v1.10.0a1) for details.

1.9.2

Not secure
**Revert Breaking Change**: _v1.9.1_ introduced a breaking change where model fields were
deep copied by default, this release reverts the default behaviour to match _v1.9.0_ and before,
while also allow deep-copy behaviour via `copy_on_model_validation = 'deep'`. See [4092](https://github.com/pydantic/pydantic/pull/4092) for more information.

* Allow for shallow copies of model fields, `Config.copy_on_model_validation` is now a str which must be
`'none'`, `'deep'`, or `'shallow'` corresponding to not copying, deep copy & shallow copy; default `'shallow'`,
[4093](https://github.com/pydantic/pydantic/pull/4093) by timkpaine

1.9.1

Not secure
Thank you to pydantic's sponsors:
tiangolo, stellargraph, JonasKs, grillazz, Mazyod, kevinalh, chdsbd, povilasb, povilasb, jina-ai,
mainframeindustries, robusta-dev, SendCloud, rszamszur, jodal, hardbyte, corleyma, daddycocoaman,
Rehket, jokull, reillysiemens, westonsteimel, primer-io, koxudaxi, browniebroke, stradivari96,
adriangb, kamalgill, jqueguiner, dev-zero, datarootsio, RedCarpetUp
for their kind support.

* Limit the size of `generics._generic_types_cache` and `generics._assigned_parameters`
to avoid unlimited increase in memory usage, [4083](https://github.com/pydantic/pydantic/pull/4083) by samuelcolvin
* Add Jupyverse and FPS as Jupyter projects using pydantic, [4082](https://github.com/pydantic/pydantic/pull/4082) by davidbrochart
* Speedup `__isinstancecheck__` on pydantic models when the type is not a model, may also avoid memory "leaks", [4081](https://github.com/pydantic/pydantic/pull/4081) by samuelcolvin
* Fix in-place modification of `FieldInfo` that caused problems with PEP 593 type aliases, [4067](https://github.com/pydantic/pydantic/pull/4067) by adriangb
* Add support for autocomplete in VS Code via `__dataclass_transform__` when using `pydantic.dataclasses.dataclass`, [4006](https://github.com/pydantic/pydantic/pull/4006) by giuliano-oliveira
* Remove benchmarks from codebase and docs, [3973](https://github.com/pydantic/pydantic/pull/3973) by samuelcolvin
* Typing checking with pyright in CI, improve docs on vscode/pylance/pyright, [3972](https://github.com/pydantic/pydantic/pull/3972) by samuelcolvin
* Fix nested Python dataclass schema regression, [3819](https://github.com/pydantic/pydantic/pull/3819) by himbeles
* Update documentation about lazy evaluation of sources for Settings, [3806](https://github.com/pydantic/pydantic/pull/3806) by garyd203
* Prevent subclasses of bytes being converted to bytes, [3706](https://github.com/pydantic/pydantic/pull/3706) by samuelcolvin
* Fixed "error checking inheritance of" when using PEP585 and PEP604 type hints, [3681](https://github.com/pydantic/pydantic/pull/3681) by aleksul
* Allow self referencing `ClassVar`s in models, [3679](https://github.com/pydantic/pydantic/pull/3679) by samuelcolvin
* **Breaking Change, see [4106](https://github.com/pydantic/pydantic/pull/4106)**: Fix issue with self-referencing dataclass, [#3675](https://github.com/pydantic/pydantic/pull/3675) by uriyyo
* Include non-standard port numbers in rendered URLs, [3652](https://github.com/pydantic/pydantic/pull/3652) by dolfinus
* `Config.copy_on_model_validation` does a deep copy and not a shallow one, [3641](https://github.com/pydantic/pydantic/pull/3641) by PrettyWood
* fix: clarify that discriminated unions do not support singletons, [3636](https://github.com/pydantic/pydantic/pull/3636) by tommilligan
* Add `read_text(encoding='utf-8')` for `setup.py`, [3625](https://github.com/pydantic/pydantic/pull/3625) by hswong3i
* Fix JSON Schema generation for Discriminated Unions within lists, [3608](https://github.com/pydantic/pydantic/pull/3608) by samuelcolvin

1.9.0

Not secure
* Apply `update_forward_refs` to `Config.json_encodes` prevent name clashes in types defined via strings, [3583](https://github.com/pydantic/pydantic/pull/3583) by samuelcolvin
* Extend pydantic's mypy plugin to support mypy versions `0.910`, `0.920`, `0.921` & `0.930`, [3573](https://github.com/pydantic/pydantic/pull/3573) & [#3594](https://github.com/pydantic/pydantic/pull/3594) by PrettyWood, christianbundy, samuelcolvin

Page 10 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.