Bump pydantic from 2.6.4 to 2.7.0
Bumps pydantic from 2.6.4 to 2.7.0.
Release notes
Sourced from pydantic's releases.
v2.7.0 (2024-04-11)
The code released in v2.7.0 is practically identical to that of v2.7.0b1.
What's Changed
Packaging
- Reorganize
pyproject.toml
sections by@Viicos
in #8899- Bump
pydantic-core
tov2.18.1
by@sydney-runkle
in #9211- Adopt
jiter
v0.2.0
by@samuelcolvin
in pydantic/pydantic-core#1250New Features
- Extract attribute docstrings from
FieldInfo.description
by@Viicos
in #6563- Add a
with_config
decorator to comply with typing spec by@Viicos
in #8611- Allow an optional separator splitting the value and unit of the result of
ByteSize.human_readable
by@jks15satoshi
in #8706- Add generic
Secret
base type by@conradogarciaberrotaran
in #8519- Make use of
Sphinx
inventories for cross references in docs by@Viicos
in #8682- Add environment variable to disable plugins by
@geospackle
in #8767- Add support for
deprecated
fields by@Viicos
in #8237- Allow
field_serializer('*')
by@ornariece
in #9001- Handle a case when
model_config
is defined as a model property by@alexeyt101
in #9004- Update
create_model()
to supporttyping.Annotated
as input by@wannieman98
in #8947- Add
ClickhouseDsn
support by@solidguy7
in #9062- Add support for
re.Pattern[str]
topattern
field by@jag-k
in #9053- Support for
serialize_as_any
runtime setting by@sydney-runkle
in #8830- Add support for
typing.Self
by@Youssefares
in #9023- Ability to pass
context
to serialization by@ornariece
in #8965- Add feedback widget to docs with flarelytics integration by
@sydney-runkle
in #9129- Support for parsing partial JSON strings in Python by
@samuelcolvin
in pydantic/jiter#66Finalized in v2.7.0, rather than v2.7.0b1:
- Add support for field level number to str coercion option by
@NeevCohen
in #9137- Update
warnings
parameter for serialization utilities to allow raising a warning by@Lance-Drane
in #9166Changes
- Correct docs, logic for
model_construct
behavior withextra
by@sydney-runkle
in #8807- Improve error message for improper
RootModel
subclasses by@sydney-runkle
in #8857- Use
PEP570
syntax by@Viicos
in #8940- Add
enum
andtype
to the JSON schema for single item literals by@dmontagu
in #8944- Deprecate
update_json_schema
internal function by@sydney-runkle
in #9125- Serialize duration to hour minute second, instead of just seconds by
@kakilangit
in pydantic/speedate#50- Trimming str before parsing to int and float by
@hungtsetse
in pydantic/pydantic-core#1203Performance
enum
validator improvements by@samuelcolvin
in #9045- Move
enum
validation and serialization to Rust by@samuelcolvin
in #9064
... (truncated)
Changelog
Sourced from pydantic's changelog.
v2.7.0 (2024-04-11)
The code released in v2.7.0 is practically identical to that of v2.7.0b1.
What's Changed
Packaging
- Reorganize
pyproject.toml
sections by@Viicos
in #8899- Bump
pydantic-core
tov2.18.1
by@sydney-runkle
in #9211- Adopt
jiter
v0.2.0
by@samuelcolvin
in pydantic/pydantic-core#1250New Features
- Extract attribute docstrings from
FieldInfo.description
by@Viicos
in #6563- Add a
with_config
decorator to comply with typing spec by@Viicos
in #8611- Allow an optional separator splitting the value and unit of the result of
ByteSize.human_readable
by@jks15satoshi
in #8706- Add generic
Secret
base type by@conradogarciaberrotaran
in #8519- Make use of
Sphinx
inventories for cross references in docs by@Viicos
in #8682- Add environment variable to disable plugins by
@geospackle
in #8767- Add support for
deprecated
fields by@Viicos
in #8237- Allow
field_serializer('*')
by@ornariece
in #9001- Handle a case when
model_config
is defined as a model property by@alexeyt101
in #9004- Update
create_model()
to supporttyping.Annotated
as input by@wannieman98
in #8947- Add
ClickhouseDsn
support by@solidguy7
in #9062- Add support for
re.Pattern[str]
topattern
field by@jag-k
in #9053- Support for
serialize_as_any
runtime setting by@sydney-runkle
in #8830- Add support for
typing.Self
by@Youssefares
in #9023- Ability to pass
context
to serialization by@ornariece
in #8965- Add feedback widget to docs with flarelytics integration by
@sydney-runkle
in #9129- Support for parsing partial JSON strings in Python by
@samuelcolvin
in pydantic/jiter#66Finalized in v2.7.0, rather than v2.7.0b1:
- Add support for field level number to str coercion option by
@NeevCohen
in #9137- Update
warnings
parameter for serialization utilities to allow raising a warning by@Lance-Drane
in #9166Changes
- Correct docs, logic for
model_construct
behavior withextra
by@sydney-runkle
in #8807- Improve error message for improper
RootModel
subclasses by@sydney-runkle
in #8857- Use
PEP570
syntax by@Viicos
in #8940- Add
enum
andtype
to the JSON schema for single item literals by@dmontagu
in #8944- Deprecate
update_json_schema
internal function by@sydney-runkle
in #9125- Serialize duration to hour minute second, instead of just seconds by
@kakilangit
in pydantic/speedate#50- Trimming str before parsing to int and float by
@hungtsetse
in pydantic/pydantic-core#1203Performance
... (truncated)
Commits
-
7af856a
Prep for 2.7 Release (#9212) -
60d77f0
Updatewarnings
parameter for serialization utilities to allow raising a wa... -
99821e9
Add support for field level number to str coercion option (#9137) -
a01b902
Updating JSON docs, addingcache_strings
toConfigDict
(#9178) -
932b025
Bump core to 2.18.1 (#9211) -
a7d3253
Fix allow extra generic (#9193) -
8aeac1a
Update mkdocs_material (#9169) -
7501231
Add 1.10.15 section to HISTORY.md (#9161) -
d294244
Prep for 2.7 beta release🚀 (#9158) -
d77a940
Uprevpydantic-core
(#9153) - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts