Bump pydantic from 1.9.0 to 1.9.2
Bumps pydantic from 1.9.0 to 1.9.2.
Release notes
Sourced from pydantic's releases.
v1.9.2 (2022-08-11)
Revert Breaking Change: v1.9.1 introduced a breaking change where model fields were deep copied by default, this release reverts the default behaviour to match v1.9.0 and before, while also allow deep-copy behaviour via
copy_on_model_validation = 'deep'. See #4092 for more information.
- Allow for shallow copies of model fields,
Config.copy_on_model_validationis now a str which must be'none','deep', or'shallow'corresponding to not copying, deep copy & shallow copy; default'shallow', #4093 by@timkpainev1.9.1 (2022-05-19)
Thank you to pydantic's sponsors:
@tiangolo,@stellargraph,@JonasKs,@grillazz,@Mazyod,@kevinalh,@chdsbd,@povilasb,@povilasb,@jina-ai,@mainframeindustries,@robusta-dev,@SendCloud,@rszamszur,@jodal,@hardbyte,@corleyma,@daddycocoaman,@Rehket,@jokull,@reillysiemens,@westonsteimel,@primer-io,@koxudaxi,@browniebroke,@stradivari96,@adriangb,@kamalgill,@jqueguiner,@dev-zero,@datarootsio,@RedCarpetUpfor their kind support.
- Limit the size of
generics._generic_types_cacheandgenerics._assigned_parametersto avoid unlimited increase in memory usage, #4083 by@samuelcolvin- Add Jupyverse and FPS as Jupyter projects using pydantic, #4082 by
@davidbrochart- Speedup
__isinstancecheck__on pydantic models when the type is not a model, may also avoid memory "leaks", #4081 by@samuelcolvin- Fix in-place modification of
FieldInfothat caused problems with PEP 593 type aliases, #4067 by@adriangb- Add support for autocomplete in VS Code via
__dataclass_transform__when usingpydantic.dataclasses.dataclass, #4006 by@giuliano-oliveira- Remove benchmarks from codebase and docs, #3973 by
@samuelcolvin- Typing checking with pyright in CI, improve docs on vscode/pylance/pyright, #3972 by
@samuelcolvin- Fix nested Python dataclass schema regression, #3819 by
@himbeles- Update documentation about lazy evaluation of sources for Settings, #3806 by
@garyd203- Prevent subclasses of bytes being converted to bytes, #3706 by
@samuelcolvin- Fixed "error checking inheritance of" when using PEP585 and PEP604 type hints, #3681 by
@aleksul- Allow self referencing
ClassVars in models, #3679 by@samuelcolvin- Fix issue with self-referencing dataclass, #3675 by
@uriyyo- Include non-standard port numbers in rendered URLs, #3652 by
@dolfinusConfig.copy_on_model_validationdoes a deep copy and not a shallow one, #3641 by@PrettyWood- fix: clarify that discriminated unions do not support singletons, #3636 by
@tommilligan- Add
read_text(encoding='utf-8')forsetup.py, #3625 by@hswong3i- Fix JSON Schema generation for Discriminated Unions within lists, #3608 by
@samuelcolvin
Changelog
Sourced from pydantic's changelog.
v1.9.2 (2022-08-11)
Revert Breaking Change: v1.9.1 introduced a breaking change where model fields were deep copied by default, this release reverts the default behaviour to match v1.9.0 and before, while also allow deep-copy behaviour via
copy_on_model_validation = 'deep'. See #4092 for more information.
- Allow for shallow copies of model fields,
Config.copy_on_model_validationis now a str which must be'none','deep', or'shallow'corresponding to not copying, deep copy & shallow copy; default'shallow', #4093 by@timkpainev1.9.1 (2022-05-19)
Thank you to pydantic's sponsors:
@tiangolo,@stellargraph,@JonasKs,@grillazz,@Mazyod,@kevinalh,@chdsbd,@povilasb,@povilasb,@jina-ai,@mainframeindustries,@robusta-dev,@SendCloud,@rszamszur,@jodal,@hardbyte,@corleyma,@daddycocoaman,@Rehket,@jokull,@reillysiemens,@westonsteimel,@primer-io,@koxudaxi,@browniebroke,@stradivari96,@adriangb,@kamalgill,@jqueguiner,@dev-zero,@datarootsio,@RedCarpetUpfor their kind support.
- Limit the size of
generics._generic_types_cacheandgenerics._assigned_parametersto avoid unlimited increase in memory usage, #4083 by@samuelcolvin- Add Jupyverse and FPS as Jupyter projects using pydantic, #4082 by
@davidbrochart- Speedup
__isinstancecheck__on pydantic models when the type is not a model, may also avoid memory "leaks", #4081 by@samuelcolvin- Fix in-place modification of
FieldInfothat caused problems with PEP 593 type aliases, #4067 by@adriangb- Add support for autocomplete in VS Code via
__dataclass_transform__when usingpydantic.dataclasses.dataclass, #4006 by@giuliano-oliveira- Remove benchmarks from codebase and docs, #3973 by
@samuelcolvin- Typing checking with pyright in CI, improve docs on vscode/pylance/pyright, #3972 by
@samuelcolvin- Fix nested Python dataclass schema regression, #3819 by
@himbeles- Update documentation about lazy evaluation of sources for Settings, #3806 by
@garyd203- Prevent subclasses of bytes being converted to bytes, #3706 by
@samuelcolvin- Fixed "error checking inheritance of" when using PEP585 and PEP604 type hints, #3681 by
@aleksul- Allow self referencing
ClassVars in models, #3679 by@samuelcolvin- Fix issue with self-referencing dataclass, #3675 by
@uriyyo- Include non-standard port numbers in rendered URLs, #3652 by
@dolfinusConfig.copy_on_model_validationdoes a deep copy and not a shallow one, #3641 by@PrettyWood- fix: clarify that discriminated unions do not support singletons, #3636 by
@tommilligan- Add
read_text(encoding='utf-8')forsetup.py, #3625 by@hswong3i- Fix JSON Schema generation for Discriminated Unions within lists, #3608 by
@samuelcolvin
Commits
1d37ffduprev and prepare for release1d6a6e6allow for shallow copies (#4093)5774756comments mostly from@PrettyWood(#4226)80ec177Pydantic V2 blog (#4218)a5edcb3generate history from changes, uprev6ac2fcdmake #4083 compatible with py3.691a2ffcfix typing tests with 3.64d17a4cuser newer twine07ed83drevert packages to support 3.6dae9325revert removing python 3.6, #3605- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Codecov Report
Merging #271 (d197e0d) into master (a9c3b77) will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## master #271 +/- ##
=======================================
Coverage 92.43% 92.43%
=======================================
Files 2 2
Lines 291 291
=======================================
Hits 269 269
Misses 22 22
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 92.43% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Superseded by #272.