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-core to 2.20.1 #7586

Closed
wants to merge 1 commit into from

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Jul 3, 2024

This PR updates pydantic-core from 2.14.5 to 2.20.1.

Changelog

2.20.1

What's Changed
* Restore 3.13 PGO builds by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1346
* Bump `pytest-examples` to get tests passing with ruff `v0.5.0` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1360
* Bump `uuid` from 1.9.0 to 1.9.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1356
* Bump `num-bigint` from 0.4.5 to 0.4.6 by dependabot in https://github.com/pydantic/pydantic-core/pull/1357
* Bump the python-packages group across 1 directory with 7 updates by dependabot in https://github.com/pydantic/pydantic-core/pull/1361
* Bump `speedate` to v0.14.1 and prep for `v0.20.1` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1347

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.20.0...v2.20.1

2.20.0

What's Changed
* Tidy up `tagged_union_schema` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1333
* Improvements in `Union` matching logic during validation by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1332
* Fix `Union` validation logic when `extra='allow'` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1334
* Add list `fail_fast` config option by uriyyo in https://github.com/pydantic/pydantic-core/pull/1322
* Update to PyO3 0.22, add Python 3.13 support by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1340

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.19.0...v2.20.0

2.19.0

What's Changed

Packaging

* Lower MSRV to 1.75 by tiran in https://github.com/pydantic/pydantic-core/pull/1316
* Bump `libc` from 0.2.147 to 0.2.155 by wxpppp in https://github.com/pydantic/pydantic-core/pull/1317

Fixes

* Make `ValidatorFunctionWrapHandler` positional only by Viicos in https://github.com/pydantic/pydantic-core/pull/1323
* Reuse `re.Pattern` object in regex patterns by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1318

Features
* Add ser_json_inf_nan='strings' mode to produce valid JSON by josh-newman in https://github.com/pydantic/pydantic-core/pull/1307

New Contributors
* tiran made their first contribution in https://github.com/pydantic/pydantic-core/pull/1316
* wxpppp made their first contribution in https://github.com/pydantic/pydantic-core/pull/1317
* josh-newman made their first contribution in https://github.com/pydantic/pydantic-core/pull/1307

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.18.4...v2.19.0

2.18.4

What's Changed

Packaging

* Bump uuid from 1.7.0 to 1.8.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/1311
* Bump serde from 1.0.197 to 1.0.203 by dependabot in https://github.com/pydantic/pydantic-core/pull/1310
* Bump the python-packages group with 6 updates by dependabot in https://github.com/pydantic/pydantic-core/pull/1312
* Uprev `jiter` to v0.4.1 by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1306

Fixes

* Fix `context` type hints by OhioDschungel6 in https://github.com/pydantic/pydantic-core/pull/1303

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.18.3...v2.18.4

2.18.3

What's Changed

Packaging
* Bump `serde_json` from 1.0.114 to 1.0.116 by dependabot in https://github.com/pydantic/pydantic-core/pull/1281
* Bump the python-packages group with 7 updates by dependabot in https://github.com/pydantic/pydantic-core/pull/1280
* Bump `regex` from 1.10.3 to 1.10.4 by dependabot in https://github.com/pydantic/pydantic-core/pull/1282
* Bump `pyo3` from 0.21.1 to 0.21.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/1283
* Bump `uraimo/run-on-arch-action` from 2.7.1 to 2.7.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/1284

Fixes
* CI: lint fixes for rust 1.78 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1289
* Fix validation of `int`s with leading unary minus by RajatRajdeep in https://github.com/pydantic/pydantic-core/pull/1291
* Defer to PyO3 `i64` extraction to avoid implicit integer casts by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1288
* Fix: keyword only non default argument by JeanArhancet in https://github.com/pydantic/pydantic-core/pull/1290
* Fix `str` subclass validation for enums by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1273
* Support `BigInt`s in `Literal`s and `Enum`s by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1297
* Fix: uuid - allow `str` subclass as input by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1296
* Fix case of checking truthiness of `NotImplemented` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1298
* Fix generate_self_schema for Python 3.12+ by JelleZijlstra in https://github.com/pydantic/pydantic-core/pull/1299

New Contributors
* RajatRajdeep made their first contribution in https://github.com/pydantic/pydantic-core/pull/1291
* JelleZijlstra made their first contribution in https://github.com/pydantic/pydantic-core/pull/1299

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.18.2...v2.18.3

2.18.2

What's Changed
* Support multiple zeros as an `int` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1269
* Fix validation of `int`s with leading unary plus by cknv in https://github.com/pydantic/pydantic-core/pull/1272
* Fix interaction between `extra != 'ignore'` and `from_attributes=True` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1275
* Handle error from `Enum`'s `missing` function as `ValidationError` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1274
* Fix memory leak with `Iterable` validation by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1271

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.18.1...v2.18.2

2.18.1

What's Changed
* allow serialization functions to upgrade warnings to exceptions by Lance-Drane in https://github.com/pydantic/pydantic-core/pull/1258
* Fix: add `coerce_numbers_to_str option` in `StringSchema` by NeevCohen in https://github.com/pydantic/pydantic-core/pull/1262
* Trim leading zeros before parsing `str` -> `int` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1266
* Prevent trailing dots in integers by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1267

New Contributors
* Lance-Drane made their first contribution in https://github.com/pydantic/pydantic-core/pull/1258

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.18.0...v2.18.1

2.18.0

What's Changed
* update to PyO3 0.21 final by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1248
* Add coerce_numbers_to_str option in str_schema by NeevCohen in https://github.com/pydantic/pydantic-core/pull/1249
* caching strings from JSON by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1240
* Bump serde from 1.0.196 to 1.0.197 by dependabot in https://github.com/pydantic/pydantic-core/pull/1255
* Bump smallvec from 1.13.1 to 1.13.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/1253
* Bump enum_dispatch from 0.3.12 to 0.3.13 by dependabot in https://github.com/pydantic/pydantic-core/pull/1252
* fix build warnings on python <3.11 by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1259
* Fixes for `ser_json_inf_nan` inference by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1251
* Adopt jiter `0.2.0` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1250

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.17.0...v2.18.0

2.17.0

What's Changed

Packaging

* Bump `smallvec` from 1.11.2 to 1.13.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1181
* Bump `regex` from 1.10.2 to 1.10.3 by dependabot in https://github.com/pydantic/pydantic-core/pull/1180
* Bump `uuid` from 1.6.1 to 1.7.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/1179
* Bump `serde` from 1.0.195 to 1.0.196 by dependabot in https://github.com/pydantic/pydantic-core/pull/1177
* Bump `serde_json` from 1.0.109 to 1.0.114 by dependabot in https://github.com/pydantic/pydantic-core/pull/1211
* Bump `ahash` from 0.8.7 to 0.8.10 by dependabot in https://github.com/pydantic/pydantic-core/pull/1210
* Bump `strum_macros` from 0.25.3 to 0.26.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1208
* update to `PyO3` 0.21 beta by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1222
* Update `pyodide` to 0.25.0 by samdobson in https://github.com/pydantic/pydantic-core/pull/1199
* Really drop python<=3.7 support by kloczek in https://github.com/pydantic/pydantic-core/pull/1232
* Uprev `speedate` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1244

Fixes

* Add benchmarks for serializing model with complete schema by alexmojaki in https://github.com/pydantic/pydantic-core/pull/1189
* Prevent panicking when `__dict__` changes during iteration by alexmojaki in https://github.com/pydantic/pydantic-core/pull/1196
* Fix `TzInfo` equality check based on offset by 13sin in https://github.com/pydantic/pydantic-core/pull/1197
* Fix stack overflow due to recursion in some recursive serializer schemas. by dmontagu in https://github.com/pydantic/pydantic-core/pull/1198
* Use PEP570 syntax by Viicos in https://github.com/pydantic/pydantic-core/pull/1216
* Fix parsing `BigInt` from `str` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1204
* Use new typing syntax for `_pydantic_core.pyi` by Viicos in https://github.com/pydantic/pydantic-core/pull/1217
* separate `Input` trait `'a` and `'py` lifetimes by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1227
* Fix json serialization when `computed_field` is excluded by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1228
* Implement `Input` for `str` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1229
* Move list validation to produce an associated type by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1230
* Remove `with_new_extra` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1233
* Associated types for arguments in Input by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1234
* Associated types for dict in input by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1237
* Remaining associated types by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1238
* Refactor `Input` trait to have single `as_python` cast for python inputs by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1241
* Allow case where `__pydantic_extra__` is `None`, even if `extra='allow'` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1236

Performance

* Rust enums validator by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1235
* Support json cow of jiter 0.1.0 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1231

New Features

* Add ability to pass `context` to serialization by ornariece in https://github.com/pydantic/pydantic-core/pull/1215
* Add `serialize_as_any` runtime flag support by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1194

Changes

* Trimming str before parsing to int and float by hungtsetse in https://github.com/pydantic/pydantic-core/pull/1203
* `speedate` change: Serialize duration to hour minute second, instead of just seconds by kakilangit in https://github.com/pydantic/speedate/pull/50

New Contributors
* alexmojaki made their first contribution in https://github.com/pydantic/pydantic-core/pull/1189
* samdobson made their first contribution in https://github.com/pydantic/pydantic-core/pull/1199
* 13sin made their first contribution in https://github.com/pydantic/pydantic-core/pull/1197
* hungtsetse made their first contribution in https://github.com/pydantic/pydantic-core/pull/1203
* stonebig made their first contribution in https://github.com/pydantic/pydantic-core/pull/1214
* ornariece made their first contribution in https://github.com/pydantic/pydantic-core/pull/1215
* bmwiedemann made their first contribution in https://github.com/pydantic/pydantic-core/pull/1221
* kloczek made their first contribution in https://github.com/pydantic/pydantic-core/pull/1232

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.16.3...v2.17.0

2.16.3

What's Changed

* `'YYYY-MM-DD'` `date` string coerced to `datetime` shouldn't infer timezone by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1193
* CI: Updates for Rust 1.76 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1191

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.16.2...v2.16.3

2.16.2

What's Changed

* Remove `AsLocItem` trait by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1169
* Fix: pattern serialization by Smixi in https://github.com/pydantic/pydantic-core/pull/1168
* Fid `UUID` validation from string by JeanArhancet in https://github.com/pydantic/pydantic-core/pull/1172
* Fix warning for `tuple` of wrong size in `Union` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1174
* Fix model `computed_field` json serialization by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1187

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.16.1...v2.16.2

2.16.1

What's Changed
* Ensure recursion guard is always used as a stack by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1166

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.16.0...v2.16.1

2.16.0

What's Changed
* Group dependencies on dependabot updates by Kludex in https://github.com/pydantic/pydantic-core/pull/1149
* simplify instantiation of undefined type by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1157
* unify 'profile.profiling' configuration by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1158
* Bump the python-packages group with 4 updates by dependabot in https://github.com/pydantic/pydantic-core/pull/1154
* Bump base64 from 0.21.5 to 0.21.7 by dependabot in https://github.com/pydantic/pydantic-core/pull/1153
* Bump pyo3 from 0.20.1 to 0.20.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/1152
* Bump pyo3-build-config from 0.20.1 to 0.20.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/1151
* Bump serde from 1.0.193 to 1.0.195 by dependabot in https://github.com/pydantic/pydantic-core/pull/1150
* correct build-profiling make command by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1160
* Int extraction by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1155
* improve performance of recursion guard by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1156
* dataclass serialization speedups by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1162
* Add support for dataclass fields init by dmontagu in https://github.com/pydantic/pydantic-core/pull/1163
* uprev to jiter v0.0.6, uprev pydantic-core by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1165


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.15.0...v2.16.0

2.15.0

What's Changed
* Fix bug with `UUID` validation from json with a wrap validator by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1080
* move all `clippy` lints into `[lints.clippy]` table by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1083
* Remove lifetime from errors by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1084
* Fix typo in `is_instance_schema` docstring by mariuswinger in https://github.com/pydantic/pydantic-core/pull/1087
* Don't build dummy objects when populating `ObTypeLookup` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1086
* Remove needless uses of `PyString::intern` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1088
* Correct deprecation message for `general_after_validator_function` by adamchainz in https://github.com/pydantic/pydantic-core/pull/1090
* support newest `jiter` behaviour by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1092
* Fixing `exclude_none` for json serialization of `computed_field`s by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1098
* Bump `pandas` tests to run on 3.12 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1097
* Fix memory leak caused by not visiting the function in a `CallValidator` during gc by dmontagu in https://github.com/pydantic/pydantic-core/pull/1100
* Pass extra argument in arguments validator by andresliszt in https://github.com/pydantic/pydantic-core/pull/1094
* Use input type json when validating a json schema by dmontagu in https://github.com/pydantic/pydantic-core/pull/1117
* Implement pickling for `ValidationError` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1119
* Bump uuid from 1.5.0 to 1.6.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1105
* Bump url from 2.4.1 to 2.5.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/1102
* Bump smallvec from 1.11.1 to 1.11.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/1103
* Bump serde from 1.0.190 to 1.0.193 by dependabot in https://github.com/pydantic/pydantic-core/pull/1104
* Support `yyyy-MM-DD` string for datetimes by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1124
* Support indirect definition references by dmontagu in https://github.com/pydantic/pydantic-core/pull/1130
* drop Python 3.7, and PyPy 3.7 and 3.8 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1129
* Bump ahash from 0.8.6 to 0.8.7 by dependabot in https://github.com/pydantic/pydantic-core/pull/1135
* Bump pyo3 from 0.20.0 to 0.20.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1136
* Bump serde_json from 1.0.108 to 1.0.109 by dependabot in https://github.com/pydantic/pydantic-core/pull/1134
* Rework `PYDANTIC_ERRORS_OMIT_URL` to `PYDANTIC_ERRORS_INCLUDE_URL` by akx in https://github.com/pydantic/pydantic-core/pull/1123
* Support serialization mode specification from model config and `SerializationConfig` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1122
* Bump idna from 0.4.0 to 0.5.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/1101
* Add unified tuple validator that can handle "variadic" tuples via PEP-646 by dmontagu in https://github.com/pydantic/pydantic-core/pull/865
* Use stricter serializer for unions of simple types by alexdrydew in https://github.com/pydantic/pydantic-core/pull/1132

New Contributors
* mariuswinger made their first contribution in https://github.com/pydantic/pydantic-core/pull/1087
* adamchainz made their first contribution in https://github.com/pydantic/pydantic-core/pull/1090
* andresliszt made their first contribution in https://github.com/pydantic/pydantic-core/pull/1094
* akx made their first contribution in https://github.com/pydantic/pydantic-core/pull/1123
* alexdrydew made their first contribution in https://github.com/pydantic/pydantic-core/pull/1132

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.14.6...v2.15.0

2.14.6

What's Changed
* fix memory leak with recursive definitions creating reference cycles by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1125


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.14.5...v2.14.6
Links

@pyup-bot
Copy link
Collaborator Author

pyup-bot commented Aug 5, 2024

Closing this in favor of #7682

@pyup-bot pyup-bot closed this Aug 5, 2024
@Harmon758 Harmon758 deleted the pyup-update-pydantic-core-2.14.5-to-2.20.1 branch August 5, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant