Bump pydantic from 1.8.2 to 1.9.0
Created by: dependabot[bot]
Bumps pydantic from 1.8.2 to 1.9.0.
Release notes
Sourced from pydantic's releases.
v1.9.0 (2021-12-31)
Thank you to pydantic's sponsors:
@sthagen
,@timdrijvers
,@toinbis
,@koxudaxi
,@ginomempin
,@primer-io
,@and-semakin
,@westonsteimel
,@reillysiemens
,@es3n1n
,@jokull
,@JonasKs
,@Rehket
,@corleyma
,@daddycocoaman
,@hardbyte
,@datarootsio
,@jodal
,@aminalaee
,@rafsaf
,@jqueguiner
,@chdsbd
,@kevinalh
,@Mazyod
,@grillazz
,@JonasKs
,@simw
,@leynier
,@xfenix
for their kind support.Highlights
- add python 3.10 support, #2885 by
@PrettyWood
- Discriminated unions, #619 by
@PrettyWood
Config.smart_union
for better union logic, #2092 by@PrettyWood
- Binaries for Macos M1 CPUs, #3498 by
@samuelcolvin
- Complex types can be set via nested environment variables, e.g.
foo___bar
, #3159 by@Air-Mark
- add a dark mode to pydantic documentation, #2913 by
@gbdlin
- Add support for autocomplete in VS Code via
__dataclass_transform__
, #2721 by@tiangolo
- Add "exclude" as a field parameter so that it can be configured using model config, #660 by
@daviskirk
v1.9.0 (2021-12-31) Changes
- Apply
update_forward_refs
toConfig.json_encodes
prevent name clashes in types defined via strings, #3583 by@samuelcolvin
- Extend pydantic's mypy plugin to support mypy versions
0.910
,0.920
,0.921
&0.930
, #3573 & #3594 by@PrettyWood
,@christianbundy
,@samuelcolvin
v1.9.0a2 (2021-12-24) Changes
- support generic models with discriminated union, #3551 by
@PrettyWood
- keep old behaviour of
json()
by default, #3542 by@PrettyWood
- Removed typing-only
__root__
attribute fromBaseModel
, #3540 by@layday
- Build Python 3.10 wheels, #3539 by
@mbachry
- Fix display of
extra
fields with model__repr__
, #3234 by@cocolman
- models copied via
Config.copy_on_model_validation
always have all fields, #3201 by@PrettyWood
- nested ORM from nested dictionaries, #3182 by
@PrettyWood
- fix link to discriminated union section by
@PrettyWood
v1.9.0a1 (2021-12-18) Changes
- Add support for
Decimal
-specific validation configurations inField()
, additionally to usingcondecimal()
, to allow better support from editors and tooling, #3507 by@tiangolo
- Add
arm64
binaries suitable for MacOS with an M1 CPU to PyPI, #3498 by@samuelcolvin
- Fix issue where
None
was considered invalid when using aUnion
type containingAny
orobject
, #3444 by@tharradine
- When generating field schema, pass optional
field
argument (of typepydantic.fields.ModelField
) to__modify_schema__()
if present, #3434 by@jasujm
- Fix issue when pydantic fail to parse
typing.ClassVar
string type annotation, #3401 by@uriyyo
- Mention Python >= 3.9.2 as an alternative to
typing_extensions.TypedDict
, #3374 by@BvB93
- Changed the validator method name in the Custom Errors example to more accurately describe what the validator is doing; changed from
name_must_contain_space
tovalue_must_equal_bar
, #3327 by@michaelrios28
- Add
AmqpDsn
class, #3254 by@kludex
- Always use
Enum
value as default in generated JSON schema, #3190 by@joaommartins
- Add support for Mypy 0.920, #3175 by
@christianbundy
validate_arguments
now supportsextra
customization (used to always beExtra.forbid
), #3161 by@PrettyWood
... (truncated)
Changelog
Sourced from pydantic's changelog.
v1.9.0 (2021-12-31)
Thank you to pydantic's sponsors:
@sthagen
,@timdrijvers
,@toinbis
,@koxudaxi
,@ginomempin
,@primer-io
,@and-semakin
,@westonsteimel
,@reillysiemens
,@es3n1n
,@jokull
,@JonasKs
,@Rehket
,@corleyma
,@daddycocoaman
,@hardbyte
,@datarootsio
,@jodal
,@aminalaee
,@rafsaf
,@jqueguiner
,@chdsbd
,@kevinalh
,@Mazyod
,@grillazz
,@JonasKs
,@simw
,@leynier
,@xfenix
for their kind support.Highlights
- add python 3.10 support, #2885 by
@PrettyWood
- Discriminated unions, #619 by
@PrettyWood
Config.smart_union
for better union logic, #2092 by@PrettyWood
- Binaries for Macos M1 CPUs, #3498 by
@samuelcolvin
- Complex types can be set via nested environment variables, e.g.
foo___bar
, #3159 by@Air-Mark
- add a dark mode to pydantic documentation, #2913 by
@gbdlin
- Add support for autocomplete in VS Code via
__dataclass_transform__
, #2721 by@tiangolo
- Add "exclude" as a field parameter so that it can be configured using model config, #660 by
@daviskirk
v1.9.0 (2021-12-31) Changes
- Apply
update_forward_refs
toConfig.json_encodes
prevent name clashes in types defined via strings, #3583 by@samuelcolvin
- Extend pydantic's mypy plugin to support mypy versions
0.910
,0.920
,0.921
&0.930
, #3573 & #3594 by@PrettyWood
,@christianbundy
,@samuelcolvin
v1.9.0a2 (2021-12-24) Changes
- support generic models with discriminated union, #3551 by
@PrettyWood
- keep old behaviour of
json()
by default, #3542 by@PrettyWood
- Removed typing-only
__root__
attribute fromBaseModel
, #3540 by@layday
- Build Python 3.10 wheels, #3539 by
@mbachry
- Fix display of
extra
fields with model__repr__
, #3234 by@cocolman
- models copied via
Config.copy_on_model_validation
always have all fields, #3201 by@PrettyWood
- nested ORM from nested dictionaries, #3182 by
@PrettyWood
- fix link to discriminated union section by
@PrettyWood
v1.9.0a1 (2021-12-18) Changes
- Add support for
Decimal
-specific validation configurations inField()
, additionally to usingcondecimal()
, to allow better support from editors and tooling, #3507 by@tiangolo
- Add
arm64
binaries suitable for MacOS with an M1 CPU to PyPI, #3498 by@samuelcolvin
- Fix issue where
None
was considered invalid when using aUnion
type containingAny
orobject
, #3444 by@tharradine
- When generating field schema, pass optional
field
argument (of typepydantic.fields.ModelField
) to__modify_schema__()
if present, #3434 by@jasujm
- Fix issue when pydantic fail to parse
typing.ClassVar
string type annotation, #3401 by@uriyyo
- Mention Python >= 3.9.2 as an alternative to
typing_extensions.TypedDict
, #3374 by@BvB93
- Changed the validator method name in the Custom Errors example to more accurately describe what the validator is doing; changed from
name_must_contain_space
tovalue_must_equal_bar
, #3327 by@michaelrios28
- Add
AmqpDsn
class, #3254 by@kludex
- Always use
Enum
value as default in generated JSON schema, #3190 by@joaommartins
- Add support for Mypy 0.920, #3175 by
@christianbundy
... (truncated)
Commits
-
fbf8002
prepare for v1.9.0 release, extra change -
5406423
prepare for v1.9.0 release -
87da9ac
applyupdate_forward_refs
tojson_encoders
(#3595) -
6f26a1c
Support mypy 0.910 to 0.930 including CI tests (#3594) -
8ef492b
build(deps): bump mypy from 0.920 to 0.930 (#3573) -
2d3d266
remove failing release step -
ef46789
add step to upload pypi files to release -
5d6f48c
prepare for v1.9.0a2 -
e882277
fix: support generic models with discriminated union (#3551) -
edad0db
fix: keep old behaviour ofjson()
by default (#3542) - 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 rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will 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 version
will 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 dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)