Pydantic

Latest version: v2.11.2

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

Scan your dependencies

Page 13 of 28

1.10.8

Not secure
* Fix a bug in `Literal` usage with `typing-extension==4.6.0`, [5826](https://github.com/pydantic/pydantic/pull/5826) by hramezani
* This solves the (closed) issue [3849](https://github.com/pydantic/pydantic/pull/3849) where aliased fields that use discriminated union fail to validate when the data contains the non-aliased field name, [#5736](https://github.com/pydantic/pydantic/pull/5736) by benwah
* Update email-validator dependency to >=2.0.0post2, [5627](https://github.com/pydantic/pydantic/pull/5627) by adriangb
* update `AnyClassMethod` for changes in [python/typeshed9771](https://github.com/python/typeshed/issues/9771), [#5505](https://github.com/pydantic/pydantic/pull/5505) by ITProKyle

1.10.7

Not secure
* Fix creating schema from model using `ConstrainedStr` with `regex` as dict key, [5223](https://github.com/pydantic/pydantic/pull/5223) by matejetz
* Address bug in mypy plugin caused by explicit_package_bases=True, [5191](https://github.com/pydantic/pydantic/pull/5191) by dmontagu
* Add implicit defaults in the mypy plugin for Field with no default argument, [5190](https://github.com/pydantic/pydantic/pull/5190) by dmontagu
* Fix schema generated for Enum values used as Literals in discriminated unions, [5188](https://github.com/pydantic/pydantic/pull/5188) by javibookline
* Fix mypy failures caused by the pydantic mypy plugin when users define `from_orm` in their own classes, [5187](https://github.com/pydantic/pydantic/pull/5187) by dmontagu
* Fix `InitVar` usage with pydantic dataclasses, mypy version `1.1.1` and the custom mypy plugin, [5162](https://github.com/pydantic/pydantic/pull/5162) by cdce8p

1.10.6

Not secure
* Implement logic to support creating validators from non standard callables by using defaults to identify them and unwrapping `functools.partial` and `functools.partialmethod` when checking the signature, [5126](https://github.com/pydantic/pydantic/pull/5126) by JensHeinrich
* Fix mypy plugin for v1.1.1, and fix `dataclass_transform` decorator for pydantic dataclasses, [5111](https://github.com/pydantic/pydantic/pull/5111) by cdce8p
* Raise `ValidationError`, not `ConfigError`, when a discriminator value is unhashable, [4773](https://github.com/pydantic/pydantic/pull/4773) by kurtmckee

1.10.5

Not secure
* Fix broken parametrized bases handling with `GenericModel`s with complex sets of models, [5052](https://github.com/pydantic/pydantic/pull/5052) by MarkusSintonen
* Invalidate mypy cache if plugin config changes, [5007](https://github.com/pydantic/pydantic/pull/5007) by cdce8p
* Fix `RecursionError` when deep-copying dataclass types wrapped by pydantic, [4949](https://github.com/pydantic/pydantic/pull/4949) by mbillingr
* Fix `X | Y` union syntax breaking `GenericModel`, [4146](https://github.com/pydantic/pydantic/pull/4146) by thenx
* Switch coverage badge to show coverage for this branch/release, [5060](https://github.com/pydantic/pydantic/pull/5060) by samuelcolvin

1.10.4

Not secure
* fix parsing of custom root models, [4883](https://github.com/pydantic/pydantic/pull/4883) by gou177
* fix: use dataclass proxy for frozen or empty dataclasses, [4878](https://github.com/pydantic/pydantic/pull/4878) by PrettyWood
* Fix `schema` and `schema_json` on models where a model instance is a one of default values, [4781](https://github.com/pydantic/pydantic/pull/4781) by Bobronium
* Add Jina AI to sponsors on docs index page, [4767](https://github.com/pydantic/pydantic/pull/4767) by samuelcolvin
* fix: support assignment on `DataclassProxy`, [4695](https://github.com/pydantic/pydantic/pull/4695) by PrettyWood
* Add `postgresql+psycopg` as allowed scheme for `PostgreDsn` to make it usable with SQLAlchemy 2, [4689](https://github.com/pydantic/pydantic/pull/4689) by morian
* Allow dict schemas to have both `patternProperties` and `additionalProperties`, [4641](https://github.com/pydantic/pydantic/pull/4641) by jparise
* Fixes error passing None for optional lists with `unique_items`, [4568](https://github.com/pydantic/pydantic/pull/4568) by mfulgo
* Fix `GenericModel` with `Callable` param raising a `TypeError`, [4551](https://github.com/pydantic/pydantic/pull/4551) by mfulgo
* Fix field regex with `StrictStr` type annotation, [4538](https://github.com/pydantic/pydantic/pull/4538) by sisp
* Correct `dataclass_transform` keyword argument name from `field_descriptors` to `field_specifiers`, [4500](https://github.com/pydantic/pydantic/pull/4500) by samuelcolvin
* fix: avoid multiple calls of `__post_init__` when dataclasses are inherited, [4487](https://github.com/pydantic/pydantic/pull/4487) by PrettyWood
* Reduce the size of binary wheels, [2276](https://github.com/pydantic/pydantic/pull/2276) by samuelcolvin

1.10.3

Not secure

Page 13 of 28

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.