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

⬆ Bump pydantic from 1.9.1 to 1.10.2 #282

Merged
merged 1 commit into from Nov 4, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 4, 2022

Bumps pydantic from 1.9.1 to 1.10.2.

Release notes

Sourced from pydantic's releases.

v1.10.2 (2022-09-05)

Full Changelog: pydantic/pydantic@v1.10.1...v1.10.2

v1.10.1 (2022-08-31)

  • Add __hash__ method to pydancic.color.Color class, #4454 by @​czaki

Full Changelog: pydantic/pydantic@v1.10.0...v1.10.1

v1.10.0 (2022-08-30)

See #4419 for feedback and discussion, docs are live at pydantic-docs.helpmanual.io.

  • Refactor the whole pydantic dataclass decorator to really act like its standard lib equivalent. It hence keeps __eq__, __hash__, ... and makes comparison with its non-validated version possible. It also fixes usage of frozen dataclasses in fields and usage of default_factory in nested dataclasses. The support of Config.extra has been added. Finally, config customization directly via a dict is now possible, #2557 by @​PrettyWood BREAKING CHANGES:
    • The compiled boolean (whether pydantic is compiled with cython) has been moved from main.py to version.py
    • Now that Config.extra is supported, dataclass ignores by default extra arguments (like BaseModel)
  • Fix PEP487 __set_name__ protocol in BaseModel for PrivateAttrs, #4407 by @​tlambert03
  • Allow for custom parsing of environment variables via parse_env_var in Config, #4406 by @​acmiyaguchi
  • Rename master to main, #4405 by @​hramezani
  • Fix StrictStr does not raise ValidationError when max_length is present in Field, #4388 by @​hramezani
  • Make SecretStr and SecretBytes hashable, #4387 by @​chbndrhnns
  • Fix StrictBytes does not raise ValidationError when max_length is present in Field, #4380 by @​JeanArhancet
  • Add support for bare type, #4375 by @​hramezani
  • Support Python 3.11, including binaries for 3.11 in PyPI, #4374 by @​samuelcolvin
  • Add support for re.Pattern, #4366 by @​hramezani
  • Fix __post_init_post_parse__ is incorrectly passed keyword arguments when no __post_init__ is defined, #4361 by @​hramezani
  • Fix implicitly importing ForwardRef and Callable from pydantic.typing instead of typing and also expose MappingIntStrAny, #4358 by @​aminalaee
  • remove Any types from the dataclass decorator so it can be used with the disallow_any_expr mypy option, #4356 by @​DetachHead
  • moved repo to pydantic/pydantic, #4348 by @​yezz123
  • fix "extra fields not permitted" error when dataclass with Extra.forbid is validated multiple times, #4343 by @​detachhead
  • Add Python 3.9 and 3.10 examples to docs, #4339 by @​Bobronium
  • Discriminated union models now use oneOf instead of anyOf when generating OpenAPI schema definitions, #4335 by @​MaxwellPayne
  • Allow type checkers to infer inner type of Json type. Json[list[str]] will be now inferred as list[str], Json[Any] should be used instead of plain Json. Runtime behaviour is not changed, #4332 by @​Bobronium
  • Allow empty string aliases by using a alias is not None check, rather than bool(alias), #4253 by @​sergeytsaplin
  • Update ForwardRefs in Field.outer_type_, #4249 by @​JacobHayes
  • The use of __dataclass_transform__ has been replaced by typing_extensions.dataclass_transform, which is the preferred way to mark pydantic models as a dataclass under PEP 681, #4241 by @​multimeric
  • Use parent model's Config when validating nested NamedTuple fields, #4219 by @​synek

... (truncated)

Changelog

Sourced from pydantic's changelog.

v1.10.2 (2022-09-05)

v1.10.1 (2022-08-31)

  • Add __hash__ method to pydancic.color.Color class, #4454 by @​czaki

v1.10.0 (2022-08-30)

  • Refactor the whole pydantic dataclass decorator to really act like its standard lib equivalent. It hence keeps __eq__, __hash__, ... and makes comparison with its non-validated version possible. It also fixes usage of frozen dataclasses in fields and usage of default_factory in nested dataclasses. The support of Config.extra has been added. Finally, config customization directly via a dict is now possible, #2557 by @​PrettyWood BREAKING CHANGES:
    • The compiled boolean (whether pydantic is compiled with cython) has been moved from main.py to version.py
    • Now that Config.extra is supported, dataclass ignores by default extra arguments (like BaseModel)
  • Fix PEP487 __set_name__ protocol in BaseModel for PrivateAttrs, #4407 by @​tlambert03
  • Allow for custom parsing of environment variables via parse_env_var in Config, #4406 by @​acmiyaguchi
  • Rename master to main, #4405 by @​hramezani
  • Fix StrictStr does not raise ValidationError when max_length is present in Field, #4388 by @​hramezani
  • Make SecretStr and SecretBytes hashable, #4387 by @​chbndrhnns
  • Fix StrictBytes does not raise ValidationError when max_length is present in Field, #4380 by @​JeanArhancet
  • Add support for bare type, #4375 by @​hramezani
  • Support Python 3.11, including binaries for 3.11 in PyPI, #4374 by @​samuelcolvin
  • Add support for re.Pattern, #4366 by @​hramezani
  • Fix __post_init_post_parse__ is incorrectly passed keyword arguments when no __post_init__ is defined, #4361 by @​hramezani
  • Fix implicitly importing ForwardRef and Callable from pydantic.typing instead of typing and also expose MappingIntStrAny, #4358 by @​aminalaee
  • remove Any types from the dataclass decorator so it can be used with the disallow_any_expr mypy option, #4356 by @​DetachHead
  • moved repo to pydantic/pydantic, #4348 by @​yezz123
  • fix "extra fields not permitted" error when dataclass with Extra.forbid is validated multiple times, #4343 by @​detachhead
  • Add Python 3.9 and 3.10 examples to docs, #4339 by @​Bobronium
  • Discriminated union models now use oneOf instead of anyOf when generating OpenAPI schema definitions, #4335 by @​MaxwellPayne
  • Allow type checkers to infer inner type of Json type. Json[list[str]] will be now inferred as list[str], Json[Any] should be used instead of plain Json. Runtime behaviour is not changed, #4332 by @​Bobronium
  • Allow empty string aliases by using a alias is not None check, rather than bool(alias), #4253 by @​sergeytsaplin
  • Update ForwardRefs in Field.outer_type_, #4249 by @​JacobHayes
  • The use of __dataclass_transform__ has been replaced by typing_extensions.dataclass_transform, which is the preferred way to mark pydantic models as a dataclass under PEP 681, #4241 by @​multimeric
  • Use parent model's Config when validating nested NamedTuple fields, #4219 by @​synek
  • Update BaseModel.construct to work with aliased Fields, #4192 by @​kylebamos

... (truncated)

Commits

Dependabot compatibility score

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)

Bumps [pydantic](https://github.com/pydantic/pydantic) from 1.9.1 to 1.10.2.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v1.9.1...v1.10.2)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from yezz123 as a code owner November 4, 2022 04:22
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 4, 2022
@codecov
Copy link

codecov bot commented Nov 4, 2022

Codecov Report

Base: 91.91% // Head: 91.91% // No change to project coverage 👍

Coverage data is based on head (95873f1) compared to base (3b70daf).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #282   +/-   ##
=======================================
  Coverage   91.91%   91.91%           
=======================================
  Files          58       58           
  Lines        2015     2015           
=======================================
  Hits         1852     1852           
  Misses        163      163           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@yezz123 yezz123 merged commit 42ac313 into main Nov 4, 2022
@yezz123 yezz123 deleted the dependabot/pip/pydantic-1.10.2 branch November 4, 2022 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant