Skip to content

Commit

Permalink
Pick 1.9 (#4350)
Browse files Browse the repository at this point in the history
* generate history from changes, uprev

* Pydantic V2 blog (#4218)

* first draft of pydantic V2 blog

* more blog

* blog rendering and formatting

* more section

* completing conversion table

* prompt build

* reviewing blog post

* more reviewing and extending

* recommendations from @Rabscuttler and @PrettyWood

* add implementation details and more suggestions

* comment about breaking changes

* convert namespae to table, more removals

* Apply suggestions from code review by @tiangolo

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>

* feedback from @tiangolo's review

* changes from @adriangb's review

* Apply suggestions from code review

Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>

* convert namespace info to psuedo-code

* rename property, remove schema_json()

* adding validation context

* remove 'model_schema_json', take 2

* more tweaks while reviewing

* comment about pypy and tagged unions

* add thanks :prey:, prepare for release

* suggestions from @PrettyWood

* suggestions from @PrettyWood, model_dump_json comment

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>

* comments mostly from @PrettyWood (#4226)

* comments mostly from @PrettyWood

* add updated comment

* fix pre-commit

* allow for shallow copies (#4093)

* allow for shallow copies

* Add changes file

* tweak change

* update for comments

* rename attr

* use single quotes

* bump ci

* add warning if not a string, switch to string literals

* fix linting, prompt ci

* fix ci

* extend and fix tests

* change default to "shallow"

Co-authored-by: Samuel Colvin <s@muelcolvin.com>

* uprev and prepare for release

* linting

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
Co-authored-by: Tim Paine <t.paine154@gmail.com>
  • Loading branch information
4 people committed Aug 12, 2022
1 parent 5c8942b commit 47362e3
Show file tree
Hide file tree
Showing 30 changed files with 1,090 additions and 34 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Expand Up @@ -3,6 +3,7 @@ repos:
rev: v4.0.1
hooks:
- id: check-yaml
args: ['--unsafe']
- id: end-of-file-fixer

- repo: local
Expand Down
39 changes: 39 additions & 0 deletions HISTORY.md
@@ -1,3 +1,42 @@
## 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_validation` is now a str which must be
`'none'`, `'deep'`, or `'shallow'` corresponding to not copying, deep copy & shallow copy; default `'shallow'`,
#4093 by @timkpaine

## v1.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, @RedCarpetUp
for their kind support.

* Limit the size of `generics._generic_types_cache` and `generics._assigned_parameters`
to 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 `FieldInfo` that caused problems with PEP 593 type aliases, #4067 by @adriangb
* Add support for autocomplete in VS Code via `__dataclass_transform__` when using `pydantic.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 `ClassVar`s in models, #3679 by @samuelcolvin
* Fix issue with self-referencing dataclass, #3675 by @uriyyo
* Include non-standard port numbers in rendered URLs, #3652 by @dolfinus
* `Config.copy_on_model_validation` does 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')` for `setup.py`, #3625 by @hswong3i
* Fix JSON Schema generation for Discriminated Unions within lists, #3608 by @samuelcolvin

## v1.9.0 (2021-12-31)

Thank you to pydantic's sponsors:
Expand Down
1 change: 0 additions & 1 deletion changes/3608-samuelcolvin.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3625-hswong3i.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3636-tommilligan.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3641-PrettyWood.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3652-dolfinus.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3675-uriyyo.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3679-samuelcolvin.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3681-aleksul.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3706-samuelcolvin.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3806-garyd203.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3819-himbeles.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3972-samuelcolvin.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/3973-samuelcolvin.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/4006-giuliano-oliveira.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/4067-adriangb.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/4081-samuelcolvin.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/4082-davidbrochart.md

This file was deleted.

2 changes: 0 additions & 2 deletions changes/4083-samuelcolvin.md

This file was deleted.

0 comments on commit 47362e3

Please sign in to comment.