Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pydantic to 2.6.1 #476

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Feb 5, 2024

This PR updates pydantic from 1.10.8 to 2.6.1.

Changelog

2.6.1

What's Changed
* Replace MiMalloc w/ default allocator by adriangb in https://github.com/pydantic/pydantic-core/pull/900
* Prepare for 2.6.1 release by adriangb in https://github.com/pydantic/pydantic-core/pull/901


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.6.0...v2.6.1

2.6.0

What's Changed
* Bump `pytest-codspeed` to v2.1.0 by art049 in https://github.com/pydantic/pydantic-core/pull/875
* Allow parsing numbers w/ underscores (e.g. 1_000) from strings by adriangb in https://github.com/pydantic/pydantic-core/pull/868
* special case of datetime as not allowed in date serializer by davidhewitt in https://github.com/pydantic/pydantic-core/pull/873
* Bump mypy from 1.4.1 to 1.5.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/876
* Bump pyright from 1.1.320 to 1.1.322 by dependabot in https://github.com/pydantic/pydantic-core/pull/878
* Bump uraimo/run-on-arch-action from 2.5.0 to 2.5.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/880
* running cargo clippy by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/885
* custom behaviour for timedelta subclasses by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/881
* Support manually specifying case labels for union validators by dmontagu in https://github.com/pydantic/pydantic-core/pull/841
* Bump ruff from 0.0.282 to 0.0.284 by dependabot in https://github.com/pydantic/pydantic-core/pull/877
* fix serialization of subclasses by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/860
* Update to speedate 0.12 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/887
* collapse arguments into ValidationState by davidhewitt in https://github.com/pydantic/pydantic-core/pull/886
* remove `'s` lifetime from `validate` and `validate_assignment` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/890
* add `left_to_right` union mode by davidhewitt in https://github.com/pydantic/pydantic-core/pull/889
* limit test requirements so that all platforms can build by davidhewitt in https://github.com/pydantic/pydantic-core/pull/892
* don't install pytest-codspeed on non x86_64 machines by davidhewitt in https://github.com/pydantic/pydantic-core/pull/895
* add some missing pypy builds for macos by davidhewitt in https://github.com/pydantic/pydantic-core/pull/894
* disable mimalloc on manylinux cross-compiles by davidhewitt in https://github.com/pydantic/pydantic-core/pull/893
* Bump version to 2.6.0 by dmontagu in https://github.com/pydantic/pydantic-core/pull/896


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.5.0...v2.6.0

2.6.0b1

What's Changed

Packaging

* Check for `email-validator` version >= 2.0 by commonism in [6033](https://github.com/pydantic/pydantic/pull/6033)
* Upgrade `ruff`` target version to Python 3.8 by Elkiwa in [8341](https://github.com/pydantic/pydantic/pull/8341)
* Update to `pydantic-extra-types==2.4.1` by yezz123 in [8478](https://github.com/pydantic/pydantic/pull/8478)
* Update to `pyright==1.1.345` by Viicos in [8453](https://github.com/pydantic/pydantic/pull/8453)
* Update pydantic-core from 2.14.6 to 2.16.1, significant changes from these updates are described below, full changelog [here](https://github.com/pydantic/pydantic-core/compare/v2.14.6...v2.16.1)

New Features

* Add `NatsDsn` by ekeew in [6874](https://github.com/pydantic/pydantic/pull/6874)
* Add `ConfigDict.ser_json_inf_nan` by davidhewitt in [8159](https://github.com/pydantic/pydantic/pull/8159)
* Add `types.OnErrorOmit` by adriangb in [8222](https://github.com/pydantic/pydantic/pull/8222)
* Support `AliasGenerator` usage by sydney-runkle in [8282](https://github.com/pydantic/pydantic/pull/8282)
* Add Pydantic People Page to docs by sydney-runkle in [8345](https://github.com/pydantic/pydantic/pull/8345)
* Support `yyyy-MM-DD` datetime parsing by sydney-runkle in [8404](https://github.com/pydantic/pydantic/pull/8404)
* Added bits conversions to the `ByteSize` class 8415 by luca-matei in [8507](https://github.com/pydantic/pydantic/pull/8507)
* Enable json schema creation with type `ByteSize` by geospackle in [8537](https://github.com/pydantic/pydantic/pull/8537)
* Add `eval_type_backport` to handle union operator and builtin generic subscripting in older Pythons by alexmojaki in [8209](https://github.com/pydantic/pydantic/pull/8209)
* Add support for `dataclass` fields `init` by dmontagu in [8552](https://github.com/pydantic/pydantic/pull/8552)
* Implement pickling for `ValidationError` by davidhewitt in [pydantic/pydantic-core1119](https://github.com/pydantic/pydantic-core/pull/1119)
* Add unified tuple validator that can handle "variadic" tuples via PEP-646 by dmontagu in [pydantic/pydantic-core865](https://github.com/pydantic/pydantic-core/pull/865)

Changes

* Drop Python3.7 support by hramezani in [7188](https://github.com/pydantic/pydantic/pull/7188)
* Drop Python 3.7, and PyPy 3.7 and 3.8 by davidhewitt in [pydantic/pydantic-core1129](https://github.com/pydantic/pydantic-core/pull/1129)
* Use positional-only `self` in `BaseModel` constructor, so no field name can ever conflict with it by ariebovenberg in [8072](https://github.com/pydantic/pydantic/pull/8072)
* Make `validate_call` return a function instead of a custom descriptor - fixes binding issue with inheritance and adds `self/cls` argument to validation errors by alexmojaki in [8268](https://github.com/pydantic/pydantic/pull/8268)
* Exclude `BaseModel` docstring from JSON schema description by sydney-runkle in [8352](https://github.com/pydantic/pydantic/pull/8352)
* Introducing `classproperty` decorator for `model_computed_fields` by Jocelyn-Gas in [8437](https://github.com/pydantic/pydantic/pull/8437)
* Explicitly raise an error if field names clashes with types by Viicos in [8243](https://github.com/pydantic/pydantic/pull/8243)
* Use stricter serializer for unions of simple types by alexdrydew [pydantic/pydantic-core1132](https://github.com/pydantic/pydantic-core/pull/1132)

Performance

* Add Codspeed profiling Actions workflow  by lambertsbennett in [8054](https://github.com/pydantic/pydantic/pull/8054)
* Improve `int` extraction by samuelcolvin in [pydantic/pydantic-core1155](https://github.com/pydantic/pydantic-core/pull/1155)
* Improve performance of recursion guard by samuelcolvin in [pydantic/pydantic-core1156](https://github.com/pydantic/pydantic-core/pull/1156)
* `dataclass` serialization speedups by samuelcolvin in [pydantic/pydantic-core1162](https://github.com/pydantic/pydantic-core/pull/1162)
* Avoid `HashMap` creation when looking up small JSON objects in `LazyIndexMaps` by samuelcolvin in [pydantic/jiter55](https://github.com/pydantic/jiter/pull/55)
* use hashbrown to speedup python string caching by davidhewitt in [pydantic/jiter51](https://github.com/pydantic/jiter/pull/51)
* Replace `Peak` with more efficient `Peek` by davidhewitt in [pydantic/jiter48](https://github.com/pydantic/jiter/pull/48)

Fixes

* Move `getattr` warning in deprecated `BaseConfig` by tlambert03 in [7183](https://github.com/pydantic/pydantic/pull/7183)
* Only hash `model_fields`, not whole `__dict__` by alexmojaki in [7786](https://github.com/pydantic/pydantic/pull/7786)
* Fix mishandling of unions while freezing types in the `mypy` plugin by dmontagu in [7411](https://github.com/pydantic/pydantic/pull/7411)
* Fix `mypy` error on untyped `ClassVar` by vincent-hachin-wmx in [8138](https://github.com/pydantic/pydantic/pull/8138)
* Only compare pydantic fields in `BaseModel.__eq__` instead of whole `__dict__` by QuentinSoubeyranAqemia in [7825](https://github.com/pydantic/pydantic/pull/7825)
* Update `strict` docstring in `model_validate` method. by LukeTonin in [8223](https://github.com/pydantic/pydantic/pull/8223)
* Fix overload position of `computed_field` by Viicos in [8227](https://github.com/pydantic/pydantic/pull/8227)
* Fix custom type type casting used in multiple attributes by ianhfc in [8066](https://github.com/pydantic/pydantic/pull/8066)
* Fix issue not allowing `validate_call` decorator to be dynamically assigned to a class method by jusexton in [8249](https://github.com/pydantic/pydantic/pull/8249)
* Fix issue `unittest.mock` deprecation warnings  by ibleedicare in [8262](https://github.com/pydantic/pydantic/pull/8262)
* Added tests for the case `JsonValue` contains subclassed primitive values by jusexton in [8286](https://github.com/pydantic/pydantic/pull/8286)
* Fix `mypy` error on free before validator (classmethod) by sydney-runkle in [8285](https://github.com/pydantic/pydantic/pull/8285)
* Fix `to_snake` conversion by jevins09 in [8316](https://github.com/pydantic/pydantic/pull/8316)
* Fix type annotation of `ModelMetaclass.__prepare__` by slanzmich in [8305](https://github.com/pydantic/pydantic/pull/8305)
* Disallow `config` specification when initializing a `TypeAdapter` when the annotated type has config already by sydney-runkle in [8365](https://github.com/pydantic/pydantic/pull/8365)
* Fix a naming issue with JSON schema for generics parametrized by recursive type aliases by dmontagu in [8389](https://github.com/pydantic/pydantic/pull/8389)
* Fix type annotation in pydantic people script by shenxiangzhuang in [8402](https://github.com/pydantic/pydantic/pull/8402)
* Add support for field `alias` in `dataclass` signature by NeevCohen in [8387](https://github.com/pydantic/pydantic/pull/8387)
* Fix bug with schema generation with `Field(...)` in a forward ref by dmontagu in [8494](https://github.com/pydantic/pydantic/pull/8494)
* Fix ordering of keys in `__dict__` with `model_construct` call by sydney-runkle in [8500](https://github.com/pydantic/pydantic/pull/8500)
* Fix module `path_type` creation when globals does not contain `__name__` by hramezani in [8470](https://github.com/pydantic/pydantic/pull/8470)
* Fix for namespace issue with dataclasses with `from __future__ import annotations` by sydney-runkle in [8513](https://github.com/pydantic/pydantic/pull/8513)
* Fix: make function validator types positional-only by pmmmwh in [8479](https://github.com/pydantic/pydantic/pull/8479)
* Fix usage of `deprecated` by Viicos in [8294](https://github.com/pydantic/pydantic/pull/8294)
* Add more support for private attributes in `model_construct` call by sydney-runkle in [8525](https://github.com/pydantic/pydantic/pull/8525)
* Use a stack for the types namespace by dmontagu in [8378](https://github.com/pydantic/pydantic/pull/8378)
* Fix schema-building bug with `TypeAliasType` for types with refs by dmontagu in [8526](https://github.com/pydantic/pydantic/pull/8526)
* Support `pydantic.Field(repr=False)` in dataclasses by tigeryy2 in [8511](https://github.com/pydantic/pydantic/pull/8511)
* Override `dataclass_transform` behavior for `RootModel` by Viicos in [8163](https://github.com/pydantic/pydantic/pull/8163)
* Refactor signature generation for simplicity by sydney-runkle in [8572](https://github.com/pydantic/pydantic/pull/8572)
* Fix ordering bug of PlainValidator annotation by Anvil in [8567](https://github.com/pydantic/pydantic/pull/8567)
* Fix `exclude_none` for json serialization of `computed_field`s by sydney-runkle in [pydantic/pydantic-core1098](https://github.com/pydantic/pydantic-core/pull/1098)
* Support yyyy-MM-DD string for datetimes by sydney-runkle in [pydantic/pydantic-core1124](https://github.com/pydantic/pydantic-core/pull/1124)


New Contributors

`pydantic`
* ekeew made their first contribution in [6874](https://github.com/pydantic/pydantic/pull/6874)
* lambertsbennett made their first contribution in [8054](https://github.com/pydantic/pydantic/pull/8054)
* vincent-hachin-wmx made their first contribution in [8138](https://github.com/pydantic/pydantic/pull/8138)
* QuentinSoubeyranAqemia made their first contribution in [7825](https://github.com/pydantic/pydantic/pull/7825)
* ariebovenberg made their first contribution in [8072](https://github.com/pydantic/pydantic/pull/8072)
* LukeTonin made their first contribution in [8223](https://github.com/pydantic/pydantic/pull/8223)
* denisart made their first contribution in [8231](https://github.com/pydantic/pydantic/pull/8231)
* ianhfc made their first contribution in [8066](https://github.com/pydantic/pydantic/pull/8066)
* eonu made their first contribution in [8255](https://github.com/pydantic/pydantic/pull/8255)
* amandahla made their first contribution in [8263](https://github.com/pydantic/pydantic/pull/8263)
* ibleedicare made their first contribution in [8262](https://github.com/pydantic/pydantic/pull/8262)
* jevins09 made their first contribution in [8316](https://github.com/pydantic/pydantic/pull/8316)
* cuu508 made their first contribution in [8322](https://github.com/pydantic/pydantic/pull/8322)
* slanzmich made their first contribution in [8305](https://github.com/pydantic/pydantic/pull/8305)
* jensenbox made their first contribution in [8331](https://github.com/pydantic/pydantic/pull/8331)
* szepeviktor made their first contribution in [8356](https://github.com/pydantic/pydantic/pull/8356)
* Elkiwa made their first contribution in [8341](https://github.com/pydantic/pydantic/pull/8341)
* parhamfh made their first contribution in [8395](https://github.com/pydantic/pydantic/pull/8395)
* shenxiangzhuang made their first contribution in [8402](https://github.com/pydantic/pydantic/pull/8402)
* NeevCohen made their first contribution in [8387](https://github.com/pydantic/pydantic/pull/8387)
* zby made their first contribution in [8497](https://github.com/pydantic/pydantic/pull/8497)
* patelnets made their first contribution in [8491](https://github.com/pydantic/pydantic/pull/8491)
* edwardwli made their first contribution in [8503](https://github.com/pydantic/pydantic/pull/8503)
* luca-matei made their first contribution in [8507](https://github.com/pydantic/pydantic/pull/8507)
* Jocelyn-Gas made their first contribution in [8437](https://github.com/pydantic/pydantic/pull/8437)
* bL34cHig0 made their first contribution in [8501](https://github.com/pydantic/pydantic/pull/8501)
* tigeryy2 made their first contribution in [8511](https://github.com/pydantic/pydantic/pull/8511)
* geospackle made their first contribution in [8537](https://github.com/pydantic/pydantic/pull/8537)
* Anvil made their first contribution in [8567](https://github.com/pydantic/pydantic/pull/8567)

`pydantic-core`
* mariuswinger made their first contribution in [pydantic/pydantic-core1087](https://github.com/pydantic/pydantic-core/pull/1087)
* adamchainz made their first contribution in [pydantic/pydantic-core1090](https://github.com/pydantic/pydantic-core/pull/1090)
* akx made their first contribution in [pydantic/pydantic-core1123](https://github.com/pydantic/pydantic-core/pull/1123)

**Full Changelog**: https://github.com/pydantic/pydantic/compare/v2.5.3...v2.6.0b1

2.5.3

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.3)

What's Changed

Packaging

* uprev `pydantic-core` to 2.14.6

Fixes

* Fix memory leak with recursive definitions creating reference cycles by davidhewitt in [pydantic/pydantic-core1125](https://github.com/pydantic/pydantic-core/pull/1125)

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.5.2...v2.5.3/

2.5.2

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.2)

What's Changed

Packaging

* uprev `pydantic-core` to 2.14.5

New Features

* Add `ConfigDict.ser_json_inf_nan` by davidhewitt in [8159](https://github.com/pydantic/pydantic/pull/8159)

Fixes

* Fix validation of `Literal` from JSON keys when used as `dict` key by sydney-runkle in [pydantic/pydantic-core1075](https://github.com/pydantic/pydantic-core/pull/1075)
* Fix bug re `custom_init` on members of `Union` by sydney-runkle in [pydantic/pydantic-core1076](https://github.com/pydantic/pydantic-core/pull/1076)
* Fix `JsonValue` `bool` serialization by sydney-runkle in [8190](https://github.com/pydantic/pydantic/pull/8159)
* Fix handling of unhashable inputs with `Literal` in `Union`s by sydney-runkle in [pydantic/pydantic-core1089](https://github.com/pydantic/pydantic-core/pull/1089)

https://github.com/pydantic/pydantic/compare/v2.5.1...v2.5.2/

2.5.1

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.1)
What's Changed

Packaging

* uprev pydantic-core to 2.14.3 by samuelcolvin in [8120](https://github.com/pydantic/pydantic/pull/8120)

Fixes

* Fix package description limit by dmontagu in [8097](https://github.com/pydantic/pydantic/pull/8097)
* Fix `ValidateCallWrapper` error when creating a model which has a validate_call wrapped field annotation by sydney-runkle in [8110](https://github.com/pydantic/pydantic/pull/8110)

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.5.0...v2.5.1/

2.5.0

What's Changed
* Fix error context type annotations by MarkusSintonen in https://github.com/pydantic/pydantic-core/pull/809
* Fix wasm preview by JeffersGlass in https://github.com/pydantic/pydantic-core/pull/835
* Fix typehint of discriminator for tagged_union_schema by dmontagu in https://github.com/pydantic/pydantic-core/pull/827
* Bump serde_json from 1.0.103 to 1.0.104 by dependabot in https://github.com/pydantic/pydantic-core/pull/846
* Bump serde from 1.0.175 to 1.0.179 by dependabot in https://github.com/pydantic/pydantic-core/pull/845
* optimize Python float validation by davidhewitt in https://github.com/pydantic/pydantic-core/pull/826
* update to PyO3 0.19.2 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/844
* Build wheels for arm64 Windows by messense in https://github.com/pydantic/pydantic-core/pull/856
* Fix PydanticKnownError user context handling issues by MarkusSintonen in https://github.com/pydantic/pydantic-core/pull/839
* Bump regex from 1.9.1 to 1.9.3 by dependabot in https://github.com/pydantic/pydantic-core/pull/859
* fix: cargo include by vvanglro in https://github.com/pydantic/pydantic-core/pull/852
* special case serialization for int as input to float by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/866
* Bump strum_macros from 0.25.1 to 0.25.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/858
* Bump serde from 1.0.179 to 1.0.183 by dependabot in https://github.com/pydantic/pydantic-core/pull/857
* fix inconsistency with strict mode of date validation by davidhewitt in https://github.com/pydantic/pydantic-core/pull/870
* add decimal validator by davidhewitt in https://github.com/pydantic/pydantic-core/pull/763

New Contributors
* MarkusSintonen made their first contribution in https://github.com/pydantic/pydantic-core/pull/809
* JeffersGlass made their first contribution in https://github.com/pydantic/pydantic-core/pull/835
* vvanglro made their first contribution in https://github.com/pydantic/pydantic-core/pull/852

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.4.0...v2.5.0

2.5.0b1

What's Changed

Packaging

* Update pydantic-core from 2.10.1 to 2.14.1, significant changes from these updates are described below, full changelog [here](https://github.com/pydantic/pydantic-core/compare/v2.10.1...v2.14.1)

New Features

* Allow plugins to catch non `ValidationError` errors by adriangb in [7806](https://github.com/pydantic/pydantic/pull/7806)
* Support `__doc__` argument in `create_model()` by chris-spann in [7863](https://github.com/pydantic/pydantic/pull/7863)
* Expose `regex_engine` flag - meaning you can use with the Rust or Python regex libraries in constraints by utkini in [7768](https://github.com/pydantic/pydantic/pull/7768)
* Save return type generated from type annotation in `ComputedFieldInfo` by alexmojaki in [7889](https://github.com/pydantic/pydantic/pull/7889)
* Adopting `ruff` formatter by Luca-Blight in [7930](https://github.com/pydantic/pydantic/pull/7930)
* Added `validation_error_cause` to config by zakstucke in [7626](https://github.com/pydantic/pydantic/pull/7626)
* Make path of the item to validate available in plugin by hramezani in [7861](https://github.com/pydantic/pydantic/pull/7861)
* Add `CallableDiscriminator` and `Tag` by dmontagu in [7983](https://github.com/pydantic/pydantic/pull/7983)
* Make union case tags affect union error messages by dmontagu in [8001](https://github.com/pydantic/pydantic/pull/8001)
* Add `examples` and `json_schema_extra` to `computed_field` by alexmojaki in [8013](https://github.com/pydantic/pydantic/pull/8013)
* Add `JsonValue` type by dmontagu in [7998](https://github.com/pydantic/pydantic/pull/7998)
* Allow `str` as argument to `Discriminator` by dmontagu in [8047](https://github.com/pydantic/pydantic/pull/8047)
* Add `SchemaSerializer.__reduce__` method to enable pickle serialization by edoakes in [pydantic/pydantic-core1006](https://github.com/pydantic/pydantic-core/pull/1006)

Changes

* **Significant Change:** replace `ultra_strict` with new smart union implementation, the way unions are validated has changed significantly to improve performance and correctness, we have worked hard to absolutely minimise the number of cases where behaviour has changed, see the PR for details - by davidhewitt in [pydantic/pydantic-core867](https://github.com/pydantic/pydantic-core/pull/867)
* Add support for instance method reassignment when `extra='allow'` by sydney-runkle in [7683](https://github.com/pydantic/pydantic/pull/7683)
* Support JSON schema generation for `Enum` types with no cases by sydney-runkle in [7927](https://github.com/pydantic/pydantic/pull/7927)
* Warn if a class inherits from `Generic` before `BaseModel` by alexmojaki in [7891](https://github.com/pydantic/pydantic/pull/7891)

Performance

* New custom JSON parser, `jiter` by samuelcolvin in [pydantic/pydantic-core974](https://github.com/pydantic/pydantic-core/pull/974)
* PGO build for MacOS M1 by samuelcolvin in [pydantic/pydantic-core1063](https://github.com/pydantic/pydantic-core/pull/1063)
* Use `__getattr__` for all package imports, improve import time by samuelcolvin in [7947](https://github.com/pydantic/pydantic/pull/7947)

Fixes

* Fix `mypy` issue with subclasses of `RootModel` by sydney-runkle in [7677](https://github.com/pydantic/pydantic/pull/7677)
* Properly rebuild the `FieldInfo` when a forward ref gets evaluated by dmontagu in [7698](https://github.com/pydantic/pydantic/pull/7698)
* Fix failure to load `SecretStr` from JSON (regression in v2.4) by sydney-runkle in [7729](https://github.com/pydantic/pydantic/pull/7729)
* Fix `defer_build` behavior with `TypeAdapter` by sydney-runkle in [7736](https://github.com/pydantic/pydantic/pull/7736)
* Improve compatibility with legacy `mypy` versions by dmontagu in [7742](https://github.com/pydantic/pydantic/pull/7742)
* Fix: update `TypeVar` handling when default is not set by pmmmwh in [7719](https://github.com/pydantic/pydantic/pull/7719)
* Support specification of `strict` on `Enum` type fields by sydney-runkle in [7761](https://github.com/pydantic/pydantic/pull/7761)
* Wrap `weakref.ref` instead of subclassing to fix `cloudpickle` serialization by edoakes in [7780](https://github.com/pydantic/pydantic/pull/7780)
* Keep values of private attributes set within `model_post_init` in subclasses by alexmojaki in [7775](https://github.com/pydantic/pydantic/pull/7775)
* Add more specific type for non-callable `json_schema_extra` by alexmojaki in [7803](https://github.com/pydantic/pydantic/pull/7803)
* Raise an error when deleting frozen (model) fields by alexmojaki in [7800](https://github.com/pydantic/pydantic/pull/7800)
* Fix schema sorting bug with default values by sydney-runkle in [7817](https://github.com/pydantic/pydantic/pull/7817)
* Use generated alias for aliases that are not specified otherwise by alexmojaki in [7802](https://github.com/pydantic/pydantic/pull/7802)
* Support `strict` specification for `UUID` types by sydney-runkle in [7865](https://github.com/pydantic/pydantic/pull/7865)
* JSON schema: fix extra parameter handling by me-and in [7810](https://github.com/pydantic/pydantic/pull/7810)
* Fix: support `pydantic.Field(kw_only=True)` with inherited dataclasses by PrettyWood in [7827](https://github.com/pydantic/pydantic/pull/7827)
* Support `validate_call` decorator for methods in classes with `__slots__` by sydney-runkle in [7883](https://github.com/pydantic/pydantic/pull/7883)
* Fix pydantic dataclass problem with `dataclasses.field` default by hramezani in [7898](https://github.com/pydantic/pydantic/pull/7898)
* Fix schema generation for generics with union type bounds by sydney-runkle in [7899](https://github.com/pydantic/pydantic/pull/7899)
* Fix version for `importlib_metadata` on python 3.7 by sydney-runkle in [7904](https://github.com/pydantic/pydantic/pull/7904)
* Support `|` operator (Union) in PydanticRecursiveRef by alexmojaki in [7892](https://github.com/pydantic/pydantic/pull/7892)
* Fix `display_as_type` for `TypeAliasType` in python 3.12 by dmontagu in [7929](https://github.com/pydantic/pydantic/pull/7929)
* Add support for `NotRequired` generics in `TypedDict` by sydney-runkle in [7932](https://github.com/pydantic/pydantic/pull/7932)
* Make generic `TypeAliasType` specifications produce different schema definitions by alexdrydew in [7893](https://github.com/pydantic/pydantic/pull/7893)
* Added fix for signature of inherited dataclass by howsunjow in [7925](https://github.com/pydantic/pydantic/pull/7925)
* Make the model name generation more robust in JSON schema by joakimnordling in [7881](https://github.com/pydantic/pydantic/pull/7881)
* Fix plurals in validation error messages (in tests) by Iipin in [7972](https://github.com/pydantic/pydantic/pull/7972)
* `PrivateAttr` is passed from `Annotated` default position by tabassco in [8004](https://github.com/pydantic/pydantic/pull/8004)
* Don't decode bytes (which may not be UTF8) when displaying SecretBytes by alexmojaki in [8012](https://github.com/pydantic/pydantic/pull/8012)
* Use `classmethod` instead of `classmethod[Any, Any, Any]` by Mr-Pepe in [7979](https://github.com/pydantic/pydantic/pull/7979)
* Clearer error on invalid Plugin by samuelcolvin in [8023](https://github.com/pydantic/pydantic/pull/8023)
* Correct pydantic dataclasses import by samuelcolvin in [8027](https://github.com/pydantic/pydantic/pull/8027)
* Fix misbehavior for models referencing redefined type aliases by dmontagu in [8050](https://github.com/pydantic/pydantic/pull/8050)
* Fix `Optional` field with `validate_default` only performing one field validation by sydney-runkle in [pydantic/pydantic-core1002](https://github.com/pydantic/pydantic-core/pull/1002)
* Fix `definition-ref` bug with `Dict` keys by sydney-runkle in [pydantic/pydantic-core1014](https://github.com/pydantic/pydantic-core/pull/1014)
* Fix bug allowing validation of `bool` types with `coerce_numbers_to_str=True` by sydney-runkle in [pydantic/pydantic-core1017](https://github.com/pydantic/pydantic-core/pull/1017)
* Don't accept `NaN` in float and decimal constraints by davidhewitt in [pydantic/pydantic-core1037](https://github.com/pydantic/pydantic-core/pull/1037)
* Add `lax_str` and `lax_int` support for enum values not inherited from str/int by michaelhly in [pydantic/pydantic-core1015](https://github.com/pydantic/pydantic-core/pull/1015)
* Support subclasses in lists in `Union` of `List` types by sydney-runkle in [pydantic/pydantic-core1039](https://github.com/pydantic/pydantic-core/pull/1039)
* Allow validation against `max_digits` and `decimals` to pass if normalized or non-normalized input is valid by sydney-runkle in [pydantic/pydantic-core1049](https://github.com/pydantic/pydantic-core/pull/1049)
* Fix: proper pluralization in `ValidationError` messages by Iipin in [pydantic/pydantic-core1050](https://github.com/pydantic/pydantic-core/pull/1050)
* Disallow the string `'-'` as `datetime` input by davidhewitt in [pydantic/speedate52](https://github.com/pydantic/speedate/pull/52) & [pydantic/pydantic-core#1060](https://github.com/pydantic/pydantic-core/pull/1060)
* Fix: NaN and Inf float serialization by davidhewitt in [pydantic/pydantic-core1062](https://github.com/pydantic/pydantic-core/pull/1062)
* Restore manylinux-compatible PGO builds by davidhewitt in [pydantic/pydantic-core1068](https://github.com/pydantic/pydantic-core/pull/1068)

New Contributors

`pydantic`
* schneebuzz made their first contribution in [7699](https://github.com/pydantic/pydantic/pull/7699)
* edoakes made their first contribution in [7780](https://github.com/pydantic/pydantic/pull/7780)
* alexmojaki made their first contribution in [7775](https://github.com/pydantic/pydantic/pull/7775)
* NickG123 made their first contribution in [7751](https://github.com/pydantic/pydantic/pull/7751)
* gowthamgts made their first contribution in [7830](https://github.com/pydantic/pydantic/pull/7830)
* jamesbraza made their first contribution in [7848](https://github.com/pydantic/pydantic/pull/7848)
* laundmo made their first contribution in [7850](https://github.com/pydantic/pydantic/pull/7850)
* rahmatnazali made their first contribution in [7870](https://github.com/pydantic/pydantic/pull/7870)
* waterfountain1996 made their first contribution in [7878](https://github.com/pydantic/pydantic/pull/7878)
* chris-spann made their first contribution in [7863](https://github.com/pydantic/pydantic/pull/7863)
* me-and made their first contribution in [7810](https://github.com/pydantic/pydantic/pull/7810)
* utkini made their first contribution in [7768](https://github.com/pydantic/pydantic/pull/7768)
* bn-l made their first contribution in [7744](https://github.com/pydantic/pydantic/pull/7744)
* alexdrydew made their first contribution in [7893](https://github.com/pydantic/pydantic/pull/7893)
* Luca-Blight made their first contribution in [7930](https://github.com/pydantic/pydantic/pull/7930)
* howsunjow made their first contribution in [7925](https://github.com/pydantic/pydantic/pull/7925)
* joakimnordling made their first contribution in [7881](https://github.com/pydantic/pydantic/pull/7881)
* icfly2 made their first contribution in [7976](https://github.com/pydantic/pydantic/pull/7976)
* Yummy-Yums made their first contribution in [8003](https://github.com/pydantic/pydantic/pull/8003)
* Iipin made their first contribution in [7972](https://github.com/pydantic/pydantic/pull/7972)
* tabassco made their first contribution in [8004](https://github.com/pydantic/pydantic/pull/8004)
* Mr-Pepe made their first contribution in [7979](https://github.com/pydantic/pydantic/pull/7979)
* 0x00cl made their first contribution in [8010](https://github.com/pydantic/pydantic/pull/8010)
* barraponto made their first contribution in [8032](https://github.com/pydantic/pydantic/pull/8032)

`pydantic-core`
* sisp made their first contribution in [pydantic/pydantic-core995](https://github.com/pydantic/pydantic-core/pull/995)
* michaelhly made their first contribution in [pydantic/pydantic-core1015](https://github.com/pydantic/pydantic-core/pull/1015)

Full changelog: Full Changelog: https://github.com/pydantic/pydantic/compare/v2.4.2...v2.5.0b1/

2.4.2

What's Changed

Fixes

* Fix bug with JSON schema for sequence of discriminated union by dmontagu in [7647](https://github.com/pydantic/pydantic/pull/7647)
* Fix schema references in discriminated unions by adriangb in [7646](https://github.com/pydantic/pydantic/pull/7646)
* Fix json schema generation for recursive models by adriangb in [7653](https://github.com/pydantic/pydantic/pull/7653)
* Fix `models_json_schema` for generic models by adriangb in [7654](https://github.com/pydantic/pydantic/pull/7654)
* Fix xfailed test for generic model signatures by adriangb in [7658](https://github.com/pydantic/pydantic/pull/7658)

New Contributors

* austinorr made their first contribution in [7657](https://github.com/pydantic/pydantic/pull/7657)
* peterHoburg made their first contribution in [7670](https://github.com/pydantic/pydantic/pull/7670)

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.4.1...v2.4.2/

2.4.1

What's Changed

Packaging

* Update pydantic-core to 2.10.1 by davidhewitt in [7633](https://github.com/pydantic/pydantic/pull/7633)

Fixes

* Serialize unsubstituted type vars as `Any` by adriangb in [7606](https://github.com/pydantic/pydantic/pull/7606)
* Remove schema building caches by adriangb in [7624](https://github.com/pydantic/pydantic/pull/7624)
* Fix an issue where JSON schema extras weren't JSON encoded by dmontagu in [7625](https://github.com/pydantic/pydantic/pull/7625)

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.4.0...v2.4.1/

2.4.0

What's Changed
* correct name of "AssignmentValidatorCallable" by davidhewitt in https://github.com/pydantic/pydantic-core/pull/789
* Always convert str subclasses to str by adriangb in https://github.com/pydantic/pydantic-core/pull/788
* Remove patch version number from error link by hramezani in https://github.com/pydantic/pydantic-core/pull/794
* add weekly dependabot configuration by davidhewitt in https://github.com/pydantic/pydantic-core/pull/791
* Bump dirty-equals from 0.5.0 to 0.6.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/808
* Bump pytest-mock from 3.10.0 to 3.11.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/807
* Bump coverage from 7.2.2 to 7.2.7 by dependabot in https://github.com/pydantic/pydantic-core/pull/801
* Bump pytz from 2022.7.1 to 2023.3 by dependabot in https://github.com/pydantic/pydantic-core/pull/799
* Bump actions/cache from 2 to 3 by dependabot in https://github.com/pydantic/pydantic-core/pull/802
* Bump strum_macros from 0.24.3 to 0.25.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/797
* Bump mymindstorm/setup-emsdk from 11 to 12 by dependabot in https://github.com/pydantic/pydantic-core/pull/804
* Bump idna from 0.3.0 to 0.4.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/798
* Bump serde from 1.0.171 to 1.0.174 by dependabot in https://github.com/pydantic/pydantic-core/pull/803
* Bump serde_json from 1.0.100 to 1.0.103 by dependabot in https://github.com/pydantic/pydantic-core/pull/800
* add profiling make target and instructions by davidhewitt in https://github.com/pydantic/pydantic-core/pull/793
* Bump base64 from 0.13.1 to 0.21.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/805
* Add uuid validator by JeanArhancet in https://github.com/pydantic/pydantic-core/pull/772
* Bump serde from 1.0.174 to 1.0.175 by dependabot in https://github.com/pydantic/pydantic-core/pull/811
* Bump uuid from 1.3.4 to 1.4.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/810
* Bump pyright from 1.1.296 to 1.1.318 by dependabot in https://github.com/pydantic/pydantic-core/pull/816
* Bump pytest-pretty from 1.1.1 to 1.2.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/815
* Bump pytest from 7.2.1 to 7.4.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/812
* use github continue-on-error to avoid red CI with test-pydantic-integration by davidhewitt in https://github.com/pydantic/pydantic-core/pull/817
* Bump pytest-examples from 0.0.4 to 0.0.10 by dependabot in https://github.com/pydantic/pydantic-core/pull/814
* adding docstrings by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/795

New Contributors
* dependabot made their first contribution in https://github.com/pydantic/pydantic-core/pull/808

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.3.1...v2.4.0

2.3.1

What's Changed
* Fix scientific floats by dmontagu in https://github.com/pydantic/pydantic-core/pull/774
* Fix scientific floats with uppercase E by kzrnm in https://github.com/pydantic/pydantic-core/pull/779
* set up stable Rust toolchain on all rust builds by davidhewitt in https://github.com/pydantic/pydantic-core/pull/782
* fix type annotations for Url & MultiHostUrl build by davidhewitt in https://github.com/pydantic/pydantic-core/pull/781
* Fix ValidationInfo repr by adriangb in https://github.com/pydantic/pydantic-core/pull/776
* Special case bool literals by adriangb in https://github.com/pydantic/pydantic-core/pull/784
* run pydantic tests as an allowed-to-fail job by davidhewitt in https://github.com/pydantic/pydantic-core/pull/767
* 🐛 Fix handling of bool literals by lig in https://github.com/pydantic/pydantic-core/pull/783
* reject is_instance inputs based on their type, not the mode by davidhewitt in https://github.com/pydantic/pydantic-core/pull/765
* fix python GC traversal for validators and serializers by davidhewitt in https://github.com/pydantic/pydantic-core/pull/787
* bump version to 2.3.1 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/790

New Contributors
* kzrnm made their first contribution in https://github.com/pydantic/pydantic-core/pull/779

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.3.0...v2.3.1

2.3.0

What's Changed
* fix borrow error when serializing recursive models by davidhewitt in https://github.com/pydantic/pydantic-core/pull/764
* Update speedate and truncate microseconds by default by adriangb in https://github.com/pydantic/pydantic-core/pull/762
* Consider `exclude_none` in `computed_field` serialization by hramezani in https://github.com/pydantic/pydantic-core/pull/768
* Type validation context as `dict[str, Any] | None` by adriangb in https://github.com/pydantic/pydantic-core/pull/709
* Update speedate to 0.11.0 by adriangb in https://github.com/pydantic/pydantic-core/pull/769
* Make TzInfo picklable by adriangb in https://github.com/pydantic/pydantic-core/pull/770
* Make validating assignment work properly with allowed extra by dmontagu in https://github.com/pydantic/pydantic-core/pull/766


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.2.0...v2.3.0

2.2.1

<!-- Release notes generated using configuration in .github/release.yml at main -->

What's Changed
* Make xfailing test for root model extra stop xfailing by dmontagu in https://github.com/pydantic/pydantic/pull/6937
* Optimize recursion detection by stopping on the second visit for the … by mciucu in https://github.com/pydantic/pydantic/pull/7160
* fix link in docs by tlambert03 in https://github.com/pydantic/pydantic/pull/7166
* Bump pydantic-core to 2.6.1 and prepare 2.2.1 release by adriangb in https://github.com/pydantic/pydantic/pull/7176

New Contributors
* mciucu made their first contribution in https://github.com/pydantic/pydantic/pull/7160

**Full Changelog**: https://github.com/pydantic/pydantic/compare/v2.2.0...v2.2.1

2.2.0

What's Changed
* 🐛 Fix `max_length` for unicode strings by lig in https://github.com/pydantic/pydantic-core/pull/758
* feat: add build method back to multihosturl by ollz272 in https://github.com/pydantic/pydantic-core/pull/730
* serde for JSON integers larger than 64 bits by davidhewitt in https://github.com/pydantic/pydantic-core/pull/745

New Contributors
* ollz272 made their first contribution in https://github.com/pydantic/pydantic-core/pull/730

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.1.3...v2.2.0

2.1.3

What's Changed
* Fix: micro typo in README 737 by ShIRannx in https://github.com/pydantic/pydantic-core/pull/738
* Always build PGO using `RUSTFLAGS` by messense in https://github.com/pydantic/pydantic-core/pull/739
* use __new__ in .pyi for Rust types by davidhewitt in https://github.com/pydantic/pydantic-core/pull/743
* fix segfaults on tests in debug builds for PyPy by davidhewitt in https://github.com/pydantic/pydantic-core/pull/744
* use timedelta repr as constraint in error messages by davidhewitt in https://github.com/pydantic/pydantic-core/pull/747
* Properly truncate characters when splitting up strings in error repr by adriangb in https://github.com/pydantic/pydantic-core/pull/746
* add build-pgo make target by davidhewitt in https://github.com/pydantic/pydantic-core/pull/741
* remove pydantic V1 comparisons from benchmark suite by davidhewitt in https://github.com/pydantic/pydantic-core/pull/748
* Bump speedate and pydantic-core versions by adriangb in https://github.com/pydantic/pydantic-core/pull/752
* add `build_info` to `_pydantic_core` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/749
* Add enum error type by hramezani in https://github.com/pydantic/pydantic-core/pull/751
* fix pypy tests on windows by davidhewitt in https://github.com/pydantic/pydantic-core/pull/757
* use pydantic's version in error messages by davidhewitt in https://github.com/pydantic/pydantic-core/pull/759
* Preserve exception instances and their context in ValidationError by adriangb in https://github.com/pydantic/pydantic-core/pull/753

New Contributors
* ShIRannx made their first contribution in https://github.com/pydantic/pydantic-core/pull/738

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.1.2...v2.1.3

2.1.2

What's Changed
* Update python3-dll-a to 0.2.9 by adriangb in https://github.com/pydantic/pydantic-core/pull/736


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.1.1...v2.1.2

2.1.1

What's Changed
* Update python3-dll-a to 0.2.8 by adriangb in https://github.com/pydantic/pydantic-core/pull/735


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.1.0...v2.1.1

2.1.0

What's Changed
* Add benchmark for field validator functions by adriangb in https://github.com/pydantic/pydantic-core/pull/726
* try testing and building for 3.12 by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/629
* basic tidy-ups to core_schema.py by davidhewitt in https://github.com/pydantic/pydantic-core/pull/713
* Don't warn on missing fields if exclude_* are used by adriangb in https://github.com/pydantic/pydantic-core/pull/727
* update to PyO3 0.19.1 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/731
* Move `field_name` from runtime to schema generation time by adriangb in https://github.com/pydantic/pydantic-core/pull/715
* build with PGO on x86_64 ubuntu and windows by davidhewitt in https://github.com/pydantic/pydantic-core/pull/678
* build pypy3.10 wheels on PGO platforms by davidhewitt in https://github.com/pydantic/pydantic-core/pull/733
* Bump version to 2.1.0 by adriangb in https://github.com/pydantic/pydantic-core/pull/734


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.0.2...v2.1.0

2.0.3

What's Changed
* Mention PyObject (v1) moving to ImportString (v2) in migration doc by slafs in https://github.com/pydantic/pydantic/pull/6456
* Fix release-tweet CI by Kludex in https://github.com/pydantic/pydantic/pull/6461
* Revise the section on required / optional / nullable fields. by ybressler in https://github.com/pydantic/pydantic/pull/6468
* Warn if a type hint is not in fact a type by adriangb in https://github.com/pydantic/pydantic/pull/6479
* Replace TransformSchema with GetPydanticSchema by dmontagu in https://github.com/pydantic/pydantic/pull/6484
* Fix the un-hashability of various annotation types, for use in caching generic containers by dmontagu in https://github.com/pydantic/pydantic/pull/6480
* PYD-164: Rework custom types docs by adriangb in https://github.com/pydantic/pydantic/pull/6490
* Fix ci by adriangb in https://github.com/pydantic/pydantic/pull/6507
* Fix forward ref in generic by adriangb in https://github.com/pydantic/pydantic/pull/6511
* Fix generation of serialization JSON schemas for core_schema.ChainSchema by dmontagu in https://github.com/pydantic/pydantic/pull/6515
* Document the change in `Field.alias` behavior in Pydantic V2 by hramezani in https://github.com/pydantic/pydantic/pull/6508
* Give better error message attempting to compute the json schema of a model with undefined fields by dmontagu in https://github.com/pydantic/pydantic/pull/6519
* Document `alias_priority` by tpdorsey in https://github.com/pydantic/pydantic/pull/6520
* Add redirect for types documentation by tpdorsey in https://github.com/pydantic/pydantic/pull/6513
* Allow updating docs without release by samuelcolvin in https://github.com/pydantic/pydantic/pull/6551
* Ensure docs tests always run in the right folder by dmontagu in https://github.com/pydantic/pydantic/pull/6487
* Defer evaluation of return type hints for serializer functions by dmontagu in https://github.com/pydantic/pydantic/pull/6516
* Disable E501 from Ruff and rely on just Black by adriangb in https://github.com/pydantic/pydantic/pull/6552
* Update JSON Schema documentation for V2 by tpdorsey in https://github.com/pydantic/pydantic/pull/6492
* Add documentation of cyclic reference handling by dmontagu in https://github.com/pydantic/pydantic/pull/6493
* Remove the need for change files by samuelcolvin in https://github.com/pydantic/pydantic/pull/6556
* add "north star" benchmark by davidhewitt in https://github.com/pydantic/pydantic/pull/6547
* Update Dataclasses docs by tpdorsey in https://github.com/pydantic/pydantic/pull/6470
* ♻️ Use different error message on v1 redirects by Kludex in https://github.com/pydantic/pydantic/pull/6595
* ⬆ Upgrade `pydantic-core` to v2.2.0 by lig in https://github.com/pydantic/pydantic/pull/6589
* Fix serialization for IPvAny by dmontagu in https://github.com/pydantic/pydantic/pull/6572
* Improve CI by using PDM instead of pip to install typing-extensions by adriangb in https://github.com/pydantic/pydantic/pull/6602
* Add `enum` error type docs  by lig in https://github.com/pydantic/pydantic/pull/6603
* 🐛 Fix `max_length` for unicode strings by lig in https://github.com/pydantic/pydantic/pull/6559
* Add documentation for accessing features via `pydantic.v1` by tpdorsey in https://github.com/pydantic/pydantic/pull/6604
* Include extra when iterating over a model by adriangb in https://github.com/pydantic/pydantic/pull/6562
* Fix typing of model_validator by adriangb in https://github.com/pydantic/pydantic/pull/6514
* Touch up Decimal validator by adriangb in https://github.com/pydantic/pydantic/pull/6327
* Fix various docstrings using fixed pytest-examples by dmontagu in https://github.com/pydantic/pydantic/pull/6607
* Handle function validators in a discriminated union by dmontagu in https://github.com/pydantic/pydantic/pull/6570
* Review json_schema.md by tpdorsey in https://github.com/pydantic/pydantic/pull/6608
* Make validate_call work on basemodel methods by dmontagu in https://github.com/pydantic/pydantic/pull/6569
* add test for big int json serde by davidhewitt in https://github.com/pydantic/pydantic/pull/6614
* Fix pydantic dataclass problem with dataclasses.field default_factory by hramezani in https://github.com/pydantic/pydantic/pull/6616
* Fixed mypy type inferrence for TypeAdapter by zakstucke in https://github.com/pydantic/pydantic/pull/6617
* Make it work to use None as a generic parameter by dmontagu in https://github.com/pydantic/pydantic/pull/6609
* Make it work to use `$ref` as an alias by dmontagu in https://github.com/pydantic/pydantic/pull/6568
* add note to migration guide about changes to `AnyUrl` etc by davidhewitt in https://github.com/pydantic/pydantic/pull/6618
* 🐛 Support defining `json_schema_extra` on `RootModel` using `Field` by lig in https://github.com/pydantic/pydantic/pull/6622
* Update pre-commit to prevent commits to main branch on accident by dmontagu in https://github.com/pydantic/pydantic/pull/6636
* Fix PDM CI for python 3.7 on MacOS/windows by dmontagu in https://github.com/pydantic/pydantic/pull/6627
* Produce more accurate signatures for pydantic dataclasses by dmontagu in https://github.com/pydantic/pydantic/pull/6633
* Updates to Url types for Pydantic V2 by tpdorsey in https://github.com/pydantic/pydantic/pull/6638
* Fix list markdown in `transform` docstring by StefanBRas in https://github.com/pydantic/pydantic/pull/6649
* simplify slots_dataclass construction to appease mypy by davidhewitt in https://github.com/pydantic/pydantic/pull/6639
* Update TypedDict schema generation docstring by adriangb in https://github.com/pydantic/pydantic/pull/6651
* Detect and lint-error for prints by dmontagu in https://github.com/pydantic/pydantic/pull/6655
* Add xfailing test for pydantic-core PR 766 by dmontagu in https://github.com/pydantic/pydantic/pull/6641
* Ignore unrecognized fields from dataclasses metadata by dmontagu in https://github.com/pydantic/pydantic/pull/6634
* Make non-existent class getattr a mypy error by dmontagu in https://github.com/pydantic/pydantic/pull/6658
* Update pydantic-core to 2.3.0 by hramezani in https://github.com/pydantic/pydantic/pull/6648
* Use OrderedDict from typing_extensions by dmontagu in https://github.com/pydantic/pydantic/pull/6664
* Fix typehint for JSON schema extra callable by dmontagu in https://github.com/pydantic/pydantic/pull/6659

New Contributors
* slafs made their first contribution in https://github.com/pydantic/pydantic/pull/6456
* zakstucke made their first contribution in https://github.com/pydantic/pydantic/pull/6617
* StefanBRas made their first contribution in https://github.com/pydantic/pydantic/pull/6649

**Full Changelog**: https://github.com/pydantic/pydantic/compare/v2.0.2...v2.03

2.0.2

What's Changed
* allow typing-extensions-4.7.0+ on pypy3.9+ by mgorny in https://github.com/pydantic/pydantic-core/pull/723
* Make `__pydantic_extra__ = None` when `extra='forbid'` by dmontagu in https://github.com/pydantic/pydantic-core/pull/725
* Simplify typing_extensions pin by AlexWaygood in https://github.com/pydantic/pydantic-core/pull/728

New Contributors
* mgorny made their first contribution in https://github.com/pydantic/pydantic-core/pull/723
* AlexWaygood made their first contribution in https://github.com/pydantic/pydantic-core/pull/728

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.0.1...v2.0.2

2.0.1

What's Changed
* fix `_pydantic_core.pyi` to be compatible with 3.7 by samuelcolvin in https://github.com/pydantic/pydantic-core/commit/bd4cc93d46bbbaca275d4c1f6bb2a98fe77d17f2
* update `README.md` in https://github.com/pydantic/pydantic-core/commit/d45cc570b5c1463a0e6dd8bff9fc47cb73580018


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.0.0...v2.0.1

2.0

What's Changed
* 📝 Don't recomend to use `TypeError` on validators by Kludex in https://github.com/pydantic/pydantic/pull/6179
* 📝 Add docs about custom error messages by Kludex in https://github.com/pydantic/pydantic/pull/6182
* Change allow mutation wording by mark-todd in https://github.com/pydantic/pydantic/pull/6184
* 📝 Improve fields documentation by Kludex in https://github.com/pydantic/pydantic/pull/6183
* Ignore deprecated methods of `pydantic.main` in pydocstyle check by hramezani in https://github.com/pydantic/pydantic/pull/6185
* Another solution to custom getattr/delattr by dmontagu in https://github.com/pydantic/pydantic/pull/6165
* 🐛 Fix `RootModel` default values by lig in https://github.com/pydantic/pydantic/pull/5949
* Improve conversion_table by hramezani in https://github.com/pydantic/pydantic/pull/6186
* Uncomment `from_orm` `deprecated` decorator by hramezani in https://github.com/pydantic/pydantic/pull/6189
* Complete `pydantic/root_model.py` docstring by hramezani in https://github.com/pydantic/pydantic/pull/6193
* Complete `pydantic/functional_validators.py` docstrings by hramezani in https://github.com/pydantic/pydantic/pull/6191
* Fix access of 'required' key for TypedDictField in GenerateJsonSchema by adriangb in https://github.com/pydantic/pydantic/pull/6200
* 💚 Use the same conditions on `send_tweet` as `release` by Kludex in https://github.com/pydantic/pydantic/pull/6170
* 📝 Add migration reference to the "Import Error" section by Kludex in https://github.com/pydantic/pydantic/pull/6208
* Improve `pydantic/mypy.py` docstring by hramezani in https://github.com/pydantic/pydantic/pull/6207
* 📝 Update documentation about "Number Types" by Kludex in https://github.com/pydantic/pydantic/pull/6211
* Don't sort model keys by adriangb in https://github.com/pydantic/pydantic/pull/6212
* Add documentation for strict mode by tpdorsey in https://github.com/pydantic/pydantic/pull/6196
* Add documentation for strict types by tpdorsey in https://github.com/pydantic/pydantic/pull/6218
* Update serialization decorator documentation by tpdorsey in https://github.com/pydantic/pydantic/pull/6216
* Update list and set docs by dmontagu in https://github.com/pydantic/pydantic/pull/6142
* Update docs for sequence_iterable by dmontagu in https://github.com/pydantic/pydantic/pull/6220
* 👷 Add Integration CI workflow for `pydantic-settings` by lig in https://github.com/pydantic/pydantic/pull/6221
* ⬆ Upgrade to pydantic-core 0.41.0 by lig in https://github.com/pydantic/pydantic/pull/6219
* Document Strict on Annotated fields by tpdorsey in https://github.com/pydantic/pydantic/pull/6223
* 🐛 Fix crash on serializing a union of RootModel and BaseModel by lig in https://github.com/pydantic/pydantic/pull/6201
* Run docstring tests by dmontagu in https://github.com/pydantic/pydantic/pull/6175
* Add documentation for PlainSerializer and WrapSerializer by tpdorsey in https://github.com/pydantic/pydantic/pull/6230
* Improve mypy documentation by hramezani in https://github.com/pydantic/pydantic/pull/6226
* 🚸 Improve error message when BaseSettings is imported by Kludex in https://github.com/pydantic/pydantic/pull/6229
* correct deprecation warning for parse_file by davidhewitt in https://github.com/pydantic/pydantic/pull/6228
* Update migration docs to include a note about `parse_env_var` removal by hramezani in https://github.com/pydantic/pydantic/pull/6235
* Add warning about datamodel-code-generator to docs by hramezani in https://github.com/pydantic/pydantic/pull/6236
* PYD-124: improve docs for `__get_pydantic_core_schema__` by adriangb in https://github.com/pydantic/pydantic/pull/6224
* Minor edits from review of Enum docs by tpdorsey in https://github.com/pydantic/pydantic/pull/6238
* Update and consolidate links in number types by tpdorsey in https://github.com/pydantic/pydantic/pull/6239
* Update V2 vs V1 section in README.md by adriangb in https://github.com/pydantic/pydantic/pull/6242
* Add type key to enums by adriangb in https://github.com/pydantic/pydantic/pull/6243
* 🐛 Restrict range on Python version for `_make_forward_ref` by Kludex in https://github.com/pydantic/pydantic/pull/6246
* 💚 Add timeout on `publish_docs` job by Kludex in https://github.com/pydantic/pydantic/pull/6247
* 👷 Enable FastAPI tests by Kludex in https://github.com/pydantic/pydantic/pull/6249
* docs: use _pydantic_core.pyi as only docs source for now by davidhewitt in https://github.com/pydantic/pydantic/pull/6257
* Reorder basemodel methods by dmontagu in https://github.com/pydantic/pydantic/pull/6260
* Improve file type docs by hramezani in https://github.com/pydantic/pydantic/pull/6252
* 🔧 Add `assignees` list to the hooky config by lig in https://github.com/pydantic/pydantic/pull/6264
* Document "wrap" validators by tpdorsey in https://github.com/pydantic/pydantic/pull/6258
* Update validate_call documentation by tpdorsey in https://github.com/pydantic/pydantic/pull/6255
* 📝 Update docs about hypothesis by Kludex in https://github.com/pydantic/pydantic/pull/6266
* Update docs for validation errors by dmontagu in https://github.com/pydantic/pydantic/pull/6262
* 📝 Improve docstrings on `json_schema.py` by Kludex in https://github.com/pydantic/pydantic/pull/6267
* Update internal links to be compatible with versions by tpdorsey in https://github.com/pydantic/pydantic/pull/6271
* Update pydantic-core to 0.42.0 by adriangb in https://github.com/pydantic/pydantic/pull/6272
* 📝 Add documentation on Special Types by Kludex in https://github.com/pydantic/pydantic/pull/6269
* Fix deduplication of Enum refs in CoreSchema by adriangb in https://github.com/pydantic/pydantic/pull/6274
* 🔥 Remove `final` keyword from `Field` by Kludex in https://github.com/pydantic/pydantic/pull/6284
* Fix relative links for logos by tpdorsey in https://github.com/pydantic/pydantic/pull/6285
* 🐛 Fix `TypeError` on mixed discriminated unions by lig in https://github.com/pydantic/pydantic/pull/6282
* Defer building discriminated unions until after all schemas are defined by adriangb in https://github.com/pydantic/pydantic/pull/6288
* Update the return type for RootModel.model_dump and document how to override it by dmontagu in https://github.com/pydantic/pydantic/pull/6290
* 🐛 Fix `RootModel.construct()` and `RootModel.__init__()` results aren't equal by lig in https://github.com/pydantic/pydantic/pull/6283
* Improve the rendering of the conversion table by dmontagu in https://github.com/pydantic/pydantic/pull/6275
* Fix privateattr clobbering classvars with future annotations by dmontagu in https://github.com/pydantic/pydantic/pull/6287
* Add documentation of Strict Mode by dmontagu in https://github.com/pydantic/pydantic/pull/6276
* 💥 Use custom `PydanticDeprecationWarning` warning instead of the generic one by lig in https://github.com/pydantic/pydantic/pull/6180
* PYD-140: Fix `use_enum_values` config flag by adriangb in https://github.com/pydantic/pydantic/pull/6294
* PYD-142: Fix use of Annotated + Field for dataclasses by adriangb in https://github.com/pydantic/pydantic/pull/6293
* Add missing metadata to computed field JSON schemas by dmontagu in https://github.com/pydantic/pydantic/pull/6299
* Move export_models to serialization by tpdorsey in https://github.com/pydantic/pydantic/pull/6303
* Review custom types by tpdorsey in https://github.com/pydantic/pydantic/pull/6292
* Improve types dict mapping doc by hramezani in https://github.com/pydantic/pydantic/pull/6265
* Change mypy tests to put comments in-line in a python module by dmontagu in https://github.com/pydantic/pydantic/pull/6305
* Update installation for release by tpdorsey in https://github.com/pydantic/pydantic/pull/6289
* Blog and announce bar for v2 release by tpdorsey in https://github.com/pydantic/pydantic/pull/6291
* Review and update Standard Types  by tpdorsey in https://github.com/pydantic/pydantic/pull/6240
* Update Pydantic V1 to 1.10.10 by hramezani in https://github.com/pydantic/pydantic/pull/6311
* Document validation context, and fix up some other issues with validators.md by dmontagu in https://github.com/pydantic/pydantic/pull/6256
* adding page about version compatibility by samuelcolvin in https://github.com/pydantic/pydantic/pull/6309
* 📝 Add note about page not up-to-date by Kludex in https://github.com/pydantic/pydantic/pull/6312
* pydantic-core 2.0.1 by samuelcolvin in https://github.com/pydantic/pydantic/pull/6310
* Update mypy plugin by dmontagu in https://github.com/pydantic/pydantic/pull/6306
* PYD-131 Links between API and usage docs by samuelcolvin in https://github.com/pydantic/pydantic/pull/6307
* Remove warning on top of `docs/usage/types/callables.md` by hramezani in https://github.com/pydantic/pydantic/pull/6318
* Index improvements by samuelcolvin in https://github.com/pydantic/pydantic/pull/6314
* Prepare for release by samuelcolvin in https://github.com/pydantic/pydantic/pull/6319

New Contributors
* davidhewitt made their first contribution in https://github.com/pydantic/pydantic/pull/6228

**Full Changelog**: https://github.com/pydantic/pydantic/compare/v2.0b3...v2.0

2.0.0

What's Changed
* move `pydantic_core` -> `python/pydantic_core` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/705
* small cleanups after move to `python/` source dir by davidhewitt in https://github.com/pydantic/pydantic-core/pull/708
* run stubtest on `_pydantic_core.pyi` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/702
* Add `EitherFloat` by JeanArhancet in https://github.com/pydantic/pydantic-core/pull/691
* fix stubtest issue post-merge by davidhewitt in https://github.com/pydantic/pydantic-core/pull/711
* Use `from __future__ import annotations` instead of string type hints in `python/pydantic_core/_pydantic_core.pyi` by adriangb in https://github.com/pydantic/pydantic-core/pull/710
* Fix installation with pypy3.7 and pypy3.8 by adriangb in https://github.com/pydantic/pydantic-core/pull/716
* PYD-137: Implement `PydanticUseDefault` error by adriangb in https://github.com/pydantic/pydantic-core/pull/714
* Add faster int inequality by JeanArhancet in https://github.com/pydantic/pydantic-core/pull/694
* PYD-147 Better model error messages by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/719
* prepare to release v2.0.0 by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/720


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v0.42.0...v2.0.0

2.0b3

What's Changed
* Fix SchemaError when multiple computed fields point to the same type by adriangb in https://github.com/pydantic/pydantic/pull/5987
* Fix bug in BaseModel __signature__ generation when a field uses Annotated by adriangb in https://github.com/pydantic/pydantic/pull/5990
* Fix json schema for single empty tuple by adriangb in https://github.com/pydantic/pydantic/pull/5988
* Fix test_extra_used_as_enum to use pytest.warns() by mgorny in https://github.com/pydantic/pydantic/pull/5994
* Improve test coverage of pydantic._internal._typing_extra by hramezani in https://github.com/pydantic/pydantic/pull/5978
* 🗑️ Deprecate `Color` and `PaymentCardNumber` by Kludex in https://github.com/pydantic/pydantic/pull/6003
* Allow `__pydantic_config__`  to be used on vanilla dataclasses by adriangb in https://github.com/pydantic/pydantic/pull/6008
* Give nicer error when using a bare root_validator by dmontagu in https://github.com/pydantic/pydantic/pull/6009
* Fix bug with model_construct when extra=allow by dmontagu in https://github.com/pydantic/pydantic/pull/6012
* 👷 Add mkdocs-material-insiders to pipeline by Kludex in https://github.com/pydantic/pydantic/pull/6014
* Add more types to conversion table by hramezani in https://github.com/pydantic/pydantic/pull/6005
* 📝 Add documentation for `model_config` by Kludex in https://github.com/pydantic/pydantic/pull/6021
* 📦 Import `RootModel` dynamically when accessed directly only by lig in https://github.com/pydantic/pydantic/pull/5951
* 🐛 Fix aliases priority by Kludex in https://github.com/pydantic/pydantic/pull/6023
* Improve usage models doc by hramezani in https://github.com/pydantic/pydantic/pull/6019
* 📝 Add documentation for `PhoneNumber` and `ABARoutingNumber` by Kludex in https://github.com/pydantic/pydantic/pull/6031
* Improve docs/usage/exporting_models doc by hramezani in https://github.com/pydantic/pydantic/pull/6030
* 📝 Include API documentation for `pydantic-settings` by Kludex in https://github.com/pydantic/pydantic/pull/6035
* Fix api links in docs by hramezani in https://github.com/pydantic/pydantic/pull/6036
* 💚 Remove installation of `mkdocs-material-insiders` on forks by Kludex in https://github.com/pydantic/pydantic/pull/6037
* Add tests for mypy inspection of metaclass arguments by cpratt34 in https://github.com/pydantic/pydantic/pull/5982
* Sort produced json schemas by adriangb in https://github.com/pydantic/pydantic/pull/6043
* Add 1.10 releases to HISTORY.md by hramezani in https://github.com/pydantic/pydantic/pull/6044
* Improve docs/usage/dataclasses.md by hramezani in https://github.com/pydantic/pydantic/pull/6046
* 📝 Reference `ConfigDict` API documentation from `model_config.md` by Kludex in https://github.com/pydantic/pydantic/pull/6047
* 📝 Update `postponed_annotations.md` documentation by Kludex in https://github.com/pydantic/pydantic/pull/6048
* 📝 Add API documentation for `pydantic-extra-types` by Kludex in https://github.com/pydantic/pydantic/pull/6050
* 📝 Add docstrings for top level modules by Kludex in https://github.com/pydantic/pydantic/pull/6053
* 📝 Update documentation for the color module by Kludex in https://github.com/pydantic/pydantic/pull/6057
* Update datetime.md by Phantom1472 in https://github.com/pydantic/pydantic/pull/6061
* Add API docs file for root_model.py (issue DOC-3) by dmontagu in https://github.com/pydantic/pydantic/pull/6060
* Improve `docs/usage/types/string_types.md` by hramezani in https://github.com/pydantic/pydantic/pull/6058
* Minor docs improvements by dmontagu in https://github.com/pydantic/pydantic/pull/6064
* Update dataclasses.py docstrings by dmontagu in https://github.com/pydantic/pydantic/pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant