Skip to content

Bump pydantic from 1.4 to 1.6.2 - #8

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/pip/pydantic-1.6.2
Open

Bump pydantic from 1.4 to 1.6.2#8
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/pip/pydantic-1.6.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 13, 2021

Copy link
Copy Markdown
Contributor

Bumps pydantic from 1.4 to 1.6.2.

Release notes

Sourced from pydantic's releases.

v1.6.2 (2021-05-11)

Security fix: Fix date and datetime parsing so passing either 'infinity' or float('inf') (or their negative values) does not cause an infinite loop, see security advisory CVE-2021-29510.

v1.6.1 (2020-07-15)

See Changelog.

Thank you to pydantic's sponsors: @鈥媘atin, @鈥媡iangolo, @鈥媍hdsbd, @鈥媕orgecarleitao, and 1 anonymous sponsor for their kind support.

changes:

v1.6 (2020-07-11)

See Changelog.

Thank you to pydantic's sponsors: @鈥媘atin, @鈥媡iangolo, @鈥媍hdsbd, @鈥媕orgecarleitao, and 1 anonymous sponsor for their kind support.

changes:

  • Modify validators for conlist and conset to not have always=True, #1682 by @鈥媠amuelcolvin
  • add port check to AnyUrl (can't exceed 65536) ports are 16 insigned bits: 0 <= port <= 2**16-1 src: rfc793 header format, #1654 by @鈥媐lapili
  • Document default regex anchoring semantics, #1648 by @鈥媦urikhan
  • Use chain.from_iterable in class_validators.py. This is a faster and more idiomatic way of using itertools.chain. Instead of computing all the items in the iterable and storing them in memory, they are computed one-by-one and never stored as a huge list. This can save on both runtime and memory space, #1642 by @鈥媍ool-RR
  • Add conset(), analogous to conlist(), #1623 by @鈥媝atrickkwang
  • make pydantic errors (un)pickable, #1616 by @鈥婸rettyWood
  • Allow custom encoding for dotenv files, #1615 by @鈥婸rettyWood
  • Ensure SchemaExtraCallable is always defined to get type hints on BaseConfig, #1614 by @鈥婸rettyWood
  • Update datetime parser to support negative timestamps, #1600 by @鈥媘lbiche
  • Update mypy, remove AnyType alias for Type[Any], #1598 by @鈥媠amuelcolvin
  • Adjust handling of root validators so that errors are aggregated from all failing root validators, instead of reporting on only the first root validator to fail, #1586 by @鈥媌eezee
  • Make __modify_schema__ on Enums apply to the enum schema rather than fields that use the enum, #1581 by @鈥媡herefromhere
  • Fix behavior of __all__ key when used in conjunction with index keys in advanced include/exclude of fields that are sequences, #1579 by @鈥媥spirus
  • Subclass validators do not run when referencing a List field defined in a parent class when each_item=True. Added an example to the docs illustrating this, #1566 by @鈥媠amueldeklund
  • change schema.field_class_to_schema to support frozenset in schema, #1557 by @鈥媤angpeibao
  • Call __modify_schema__ only for the field schema, #1552 by @鈥婸rettyWood
  • Move the assignment of field.validate_always in fields.py so the always parameter of validators work on inheritance, #1545 by @鈥媎cHHH
  • Added support for UUID instantiation through 16 byte strings such as b'\x12\x34\x56\x78' * 4. This was done to support BINARY(16) columns in sqlalchemy, #1541 by @鈥媠hawnwall
  • Add a test assertion that default_factory can return a singleton, #1523 by @鈥媡herefromhere
  • Add NameEmail.__eq__ so duplicate NameEmail instances are evaluated as equal, #1514 by @鈥媠tephen-bunn
  • Add datamodel-code-generator link in pydantic document site, #1500 by @鈥媖oxudaxi
  • Added a "Discussion of Pydantic" section to the documentation, with a link to "Pydantic Introduction" video by Alexander Hultn茅r, #1499 by @鈥媓ultner
  • Avoid some side effects of default_factory by calling it only once if possible and by not setting a default value in the schema, #1491 by @鈥婸rettyWood
  • Added docs about dumping dataclasses to JSON, #1487 by @鈥媘ikegrima
  • Make BaseModel.__signature__ class-only, so getting __signature__ from model instance will raise AttributeError, #1466 by @鈥婱rMrRobat
  • include 'format': 'password' in the schema for secret types, #1424 by @鈥媋theuz
  • Modify schema constraints on ConstrainedFloat so that exclusiveMinimum and minimum are not included in the schema if they are equal to -math.inf and exclusiveMaximum and maximum are not included if they are equal to math.inf, #1417 by @鈥媣dwees
  • Squash internal __root__ dicts in .dict() (and, by extension, in .json()), #1414 by @鈥媝atrickkwang

... (truncated)

Changelog

Sourced from pydantic's changelog.

v1.6.2 (2021-05-11)

  • Security fix: Fix date and datetime parsing so passing either 'infinity' or float('inf') (or their negative values) does not cause an infinite loop, See security advisory CVE-2021-29510

v1.6.1 (2020-07-15)

v1.6 (2020-07-11)

Thank you to pydantic's sponsors: @鈥媘atin, @鈥媡iangolo, @鈥媍hdsbd, @鈥媕orgecarleitao, and 1 anonymous sponsor for their kind support.

  • Modify validators for conlist and conset to not have always=True, #1682 by @鈥媠amuelcolvin
  • add port check to AnyUrl (can't exceed 65536) ports are 16 insigned bits: 0 <= port <= 2**16-1 src: rfc793 header format, #1654 by @鈥媐lapili
  • Document default regex anchoring semantics, #1648 by @鈥媦urikhan
  • Use chain.from_iterable in class_validators.py. This is a faster and more idiomatic way of using itertools.chain. Instead of computing all the items in the iterable and storing them in memory, they are computed one-by-one and never stored as a huge list. This can save on both runtime and memory space, #1642 by @鈥媍ool-RR
  • Add conset(), analogous to conlist(), #1623 by @鈥媝atrickkwang
  • make pydantic errors (un)pickable, #1616 by @鈥婸rettyWood
  • Allow custom encoding for dotenv files, #1615 by @鈥婸rettyWood
  • Ensure SchemaExtraCallable is always defined to get type hints on BaseConfig, #1614 by @鈥婸rettyWood
  • Update datetime parser to support negative timestamps, #1600 by @鈥媘lbiche
  • Update mypy, remove AnyType alias for Type[Any], #1598 by @鈥媠amuelcolvin
  • Adjust handling of root validators so that errors are aggregated from all failing root validators, instead of reporting on only the first root validator to fail, #1586 by @鈥媌eezee
  • Make __modify_schema__ on Enums apply to the enum schema rather than fields that use the enum, #1581 by @鈥媡herefromhere
  • Fix behavior of __all__ key when used in conjunction with index keys in advanced include/exclude of fields that are sequences, #1579 by @鈥媥spirus
  • Subclass validators do not run when referencing a List field defined in a parent class when each_item=True. Added an example to the docs illustrating this, #1566 by @鈥媠amueldeklund
  • change schema.field_class_to_schema to support frozenset in schema, #1557 by @鈥媤angpeibao
  • Call __modify_schema__ only for the field schema, #1552 by @鈥婸rettyWood
  • Move the assignment of field.validate_always in fields.py so the always parameter of validators work on inheritance, #1545 by @鈥媎cHHH
  • Added support for UUID instantiation through 16 byte strings such as b'\x12\x34\x56\x78' * 4. This was done to support BINARY(16) columns in sqlalchemy, #1541 by @鈥媠hawnwall
  • Add a test assertion that default_factory can return a singleton, #1523 by @鈥媡herefromhere
  • Add NameEmail.__eq__ so duplicate NameEmail instances are evaluated as equal, #1514 by @鈥媠tephen-bunn
  • Add datamodel-code-generator link in pydantic document site, #1500 by @鈥媖oxudaxi
  • Added a "Discussion of Pydantic" section to the documentation, with a link to "Pydantic Introduction" video by Alexander Hultn茅r, #1499 by @鈥媓ultner
  • Avoid some side effects of default_factory by calling it only once if possible and by not setting a default value in the schema, #1491 by @鈥婸rettyWood
  • Added docs about dumping dataclasses to JSON, #1487 by @鈥媘ikegrima
  • Make BaseModel.__signature__ class-only, so getting __signature__ from model instance will raise AttributeError, #1466 by @鈥婱rMrRobat
  • include 'format': 'password' in the schema for secret types, #1424 by @鈥媋theuz
  • Modify schema constraints on ConstrainedFloat so that exclusiveMinimum and minimum are not included in the schema if they are equal to -math.inf and exclusiveMaximum and maximum are not included if they are equal to math.inf, #1417 by @鈥媣dwees
  • Squash internal __root__ dicts in .dict() (and, by extension, in .json()), #1414 by @鈥媝atrickkwang
  • Move const validator to post-validators so it validates the parsed value, #1410 by @鈥媠elimb
  • Fix model validation to handle nested literals, e.g. Literal['foo', Literal['bar']], #1364 by @鈥婦BCerigo
  • Remove user_required = True from RedisDsn, neither user nor password are required, #1275 by @鈥媠amuelcolvin

... (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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label May 13, 2021
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants