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.0.1 #398

Closed
wants to merge 2 commits into from
Closed

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Jul 4, 2023

This PR updates pydantic from 1.10.7 to 2.0.1.

Changelog

2.0.1

First patch release of Pydantic V2

* Extra fields added via `setattr` (i.e. `m.some_extra_field = 'extra_value'`)
are added to `.model_extra` if `model_config` `extra='allowed'`. Fixed 6333, 6365 by aaraney
* Automatically unpack JSON schema '$ref' for custom types, 6343 by adriangb
* Fix tagged unions multiple processing in submodels, 6340 by suharnikov

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0.1)

2.0

Pydantic V2 is here! :tada:

See [this post](https://docs.pydantic.dev/2.0/blog/pydantic-v2-final/) for more details.

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0)

2.0b3

Third beta pre-release of Pydantic V2

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0b3)

2.0b2

Add `from_attributes` runtime flag to `TypeAdapter.validate_python` and `BaseModel.model_validate`.

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0b2)

2.0b1

First beta pre-release of Pydantic V2

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0b1)

2.0a4

Fourth pre-release of Pydantic V2

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0a4)

2.0a3

Third pre-release of Pydantic V2

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0a3)

2.0a2

Second pre-release of Pydantic V2

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0a2)

2.0a1

First pre-release of Pydantic V2!

See [this post](https://docs.pydantic.dev/blog/pydantic-v2-alpha/) for more details.

1.10.11

* Importing create_model in tools.py through relative path instead of absolute path - so that it doesn't import V2 code when copied over to V2 branch, 6361 by SharathHuddar

1.10.10

* Add Pydantic `Json` field support to settings management, 6250 by hramezani
* Fixed literal validator errors for unhashable values, 6188 by markus1978
* Fixed bug with generics receiving forward refs, 6130 by mark-todd
* Update install method of FastAPI for internal tests in CI, 6117 by Kludex

1.10.9

* Fix trailing zeros not ignored in Decimal validation, 5968 by hramezani
* Fix mypy plugin for v1.4.0, 5928 by cdce8p
* Add future and past date hypothesis strategies, 5850 by bschoenmaeckers
* Discourage usage of Cython 3 with Pydantic 1.x, 5845 by lig

1.10.8

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

@pyup-bot pyup-bot mentioned this pull request Jul 4, 2023
@pyup-bot
Copy link
Collaborator Author

pyup-bot commented Jul 5, 2023

Closing this in favor of #399

@pyup-bot pyup-bot closed this Jul 5, 2023
@cguardia cguardia deleted the pyup-update-pydantic-1.10.7-to-2.0.1 branch July 5, 2023 19:01
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