Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

⬆️ Bump pydantic from 1.7.3 to 1.8 #5

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Mar 1, 2021

Bumps pydantic from 1.7.3 to 1.8.

Release notes

Sourced from pydantic's releases.

v1.8 (2021-02-26)

See Changelog.

Thank you to pydantic's sponsors: @​jorgecarleitao, @​BCarley, @​chdsbd, @​tiangolo, @​matin, @​linusg, @​kevinalh, @​koxudaxi, @​timdrijvers, @​mkeen, @​meadsteve, @​ginomempin, @​primer-io, @​and-semakin, @​tomthorogood, @​AjitZK, @​westonsteimel, @​Mazyod, @​christippett, @​CarlosDomingues, @​Kludex, @​r-m-n for their kind support.

Highlights

Changes

  • Breaking Change, remove old deprecation aliases from v1, #2415 by @​samuelcolvin:
    • remove notes on migrating to v1 in docs
    • remove Schema which was replaced by Field
    • remove Config.case_insensitive which was replaced by Config.case_sensitive (default False)
    • remove Config.allow_population_by_alias which was replaced by Config.allow_population_by_field_name
    • remove model.fields which was replaced by model.__fields__
    • remove model.to_string() which was replaced by str(model)
    • remove model.__values__ which was replaced by model.__dict__
  • Breaking Change: always validate only first sublevel items with each_item. There were indeed some edge cases with some compound types where the validated items were the last sublevel ones, #1933 by @​PrettyWood
  • Update docs extensions to fix local syntax highlighting, #2400 by @​daviskirk
  • fix: allow utils.lenient_issubclass to handle typing.GenericAlias objects like list[str] in python >= 3.9, #2399 by @​daviskirk
  • Improve field declaration for pydantic dataclass by allowing the usage of pydantic Field or 'metadata' kwarg of dataclasses.field, #2384 by @​PrettyWood
  • Making typing-extensions a required dependency, #2368 by @​samuelcolvin
  • Make resolve_annotations more lenient, allowing for missing modules, #2363 by @​samuelcolvin
  • Allow configuring models through class kwargs, #2356 by @​MrMrRobat
  • Prevent Mapping subclasses from always being coerced to dict, #2325 by @​ofek
  • fix: allow None for type Optional[conset / conlist], #2320 by @​PrettyWood
  • Support empty tuple type, #2318 by @​PrettyWood
  • fix: python_requires metadata to require >=3.6.1, #2306 by @​hukkinj1
  • Properly encode Decimal with, or without any decimal places, #2293 by @​hultner
  • fix: update __fields_set__ in BaseModel.copy(update=…), #2290 by @​PrettyWood
  • fix: keep order of fields with BaseModel.construct(), #2281 by @​PrettyWood
  • Support generating schema for Generic fields, #2262 by @​maximberg
  • Fix validate_decorator so **kwargs doesn't exclude values when the keyword has the same name as the *args or **kwargs names, #2251 by @​cybojenix
  • Prevent overriding positional arguments with keyword arguments in validate_arguments, as per behaviour with native functions, #2249 by @​cybojenix
  • add documentation for con* type functions, #2242 by @​tayoogunbiyi
  • Support custom root type (aka __root__) when using parse_obj() with nested models, #2238 by @​PrettyWood
  • Support custom root type (aka __root__) with from_orm(), #2237 by @​PrettyWood
  • ensure cythonized functions are left untouched when creating models, based on #1944 by @​kollmats, #2228 by @​samuelcolvin

... (truncated)

Changelog

Sourced from pydantic's changelog.

v1.8 (2021-02-26)

Thank you to pydantic's sponsors: @​jorgecarleitao, @​BCarley, @​chdsbd, @​tiangolo, @​matin, @​linusg, @​kevinalh, @​koxudaxi, @​timdrijvers, @​mkeen, @​meadsteve, @​ginomempin, @​primer-io, @​and-semakin, @​tomthorogood, @​AjitZK, @​westonsteimel, @​Mazyod, @​christippett, @​CarlosDomingues, @​Kludex, @​r-m-n for their kind support.

Highlights

Changes

  • Breaking Change, remove old deprecation aliases from v1, #2415 by @​samuelcolvin:
    • remove notes on migrating to v1 in docs
    • remove Schema which was replaced by Field
    • remove Config.case_insensitive which was replaced by Config.case_sensitive (default False)
    • remove Config.allow_population_by_alias which was replaced by Config.allow_population_by_field_name
    • remove model.fields which was replaced by model.__fields__
    • remove model.to_string() which was replaced by str(model)
    • remove model.__values__ which was replaced by model.__dict__
  • Breaking Change: always validate only first sublevel items with each_item. There were indeed some edge cases with some compound types where the validated items were the last sublevel ones, #1933 by @​PrettyWood
  • Update docs extensions to fix local syntax highlighting, #2400 by @​daviskirk
  • fix: allow utils.lenient_issubclass to handle typing.GenericAlias objects like list[str] in python >= 3.9, #2399 by @​daviskirk
  • Improve field declaration for pydantic dataclass by allowing the usage of pydantic Field or 'metadata' kwarg of dataclasses.field, #2384 by @​PrettyWood
  • Making typing-extensions a required dependency, #2368 by @​samuelcolvin
  • Make resolve_annotations more lenient, allowing for missing modules, #2363 by @​samuelcolvin
  • Allow configuring models through class kwargs, #2356 by @​MrMrRobat
  • Prevent Mapping subclasses from always being coerced to dict, #2325 by @​ofek
  • fix: allow None for type Optional[conset / conlist], #2320 by @​PrettyWood
  • Support empty tuple type, #2318 by @​PrettyWood
  • fix: python_requires metadata to require >=3.6.1, #2306 by @​hukkinj1
  • Properly encode Decimal with, or without any decimal places, #2293 by @​hultner
  • fix: update __fields_set__ in BaseModel.copy(update=…), #2290 by @​PrettyWood
  • fix: keep order of fields with BaseModel.construct(), #2281 by @​PrettyWood
  • Support generating schema for Generic fields, #2262 by @​maximberg
  • Fix validate_decorator so **kwargs doesn't exclude values when the keyword has the same name as the *args or **kwargs names, #2251 by @​cybojenix
  • Prevent overriding positional arguments with keyword arguments in validate_arguments, as per behaviour with native functions, #2249 by @​cybojenix
  • add documentation for con* type functions, #2242 by @​tayoogunbiyi
  • Support custom root type (aka __root__) when using parse_obj() with nested models, #2238 by @​PrettyWood
  • Support custom root type (aka __root__) with from_orm(), #2237 by @​PrettyWood
  • ensure cythonized functions are left untouched when creating models, based on #1944 by @​kollmats, #2228 by @​samuelcolvin
  • Resolve forward refs for stdlib dataclasses converted into pydantic ones, #2220 by @​PrettyWood

... (truncated)

Commits
  • a8d50ae update license for 2021
  • aff4a41 preparing for v1.8 (#2414)
  • 2ee6811 remove DeprecationWarnings from v1 release & fix coverage (#2415)
  • 8f0980e fix: prevent RecursionError while using recursive GenericModels (#2338)
  • 90df33c update benchmarks
  • 3ec3559 Support Field in dataclass + 'metadata' kwarg of dataclasses.field (#...
  • f32832a Adds benchmark tests for Schematics tool (#2381)
  • ededd3e refactor(schema): support properly Literal in generated JSON schema (#2348)
  • 2c2e238 Update mkdocs extensions to fix local syntax highlighting (#2401)
  • 4ddf4f1 Properly retain types of Mapping subclasses (#2325)
  • Additional commits viewable in compare view

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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 1, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Mar 4, 2021

Superseded by #6.

@dependabot dependabot bot closed this Mar 4, 2021
@dependabot dependabot bot deleted the dependabot/pip/pydantic-1.8 branch March 4, 2021 07:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants