Weasyl / weasyl

The website.
https://www.weasyl.com
Apache License 2.0
118 stars 33 forks source link

Bump sqlalchemy from 1.4.45 to 2.0.1 in /libweasyl #1304

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps sqlalchemy from 1.4.45 to 2.0.1.

Release notes

Sourced from sqlalchemy's releases.

2.0.1

Released: February 1, 2023

orm

  • [orm] [bug] [regression] Fixed regression where ORM models that used joined table inheritance with a composite foreign key would encounter an internal error in the mapper internals.

    References: #9164

  • [orm] [bug] Added support for PEP 484 NewType to be used in the _orm.registry.type_annotation_map as well as within Mapped constructs. These types will behave in the same way as custom subclasses of types right now; they must appear explicitly within the _orm.registry.type_annotation_map to be mapped.

    References: #9175

  • [orm] [bug] When using the MappedAsDataclass superclass, all classes within the hierarchy that are subclasses of this class will now be run through the @dataclasses.dataclass function whether or not they are actually mapped, so that non-ORM fields declared on non-mapped classes within the hierarchy will be used when mapped subclasses are turned into dataclasses. This behavior applies both to intermediary classes mapped with __abstract__ = True as well as to the user-defined declarative base itself, assuming MappedAsDataclass is present as a superclass for these classes.

    This allows non-mapped attributes such as InitVar declarations on superclasses to be used, without the need to run the @dataclasses.dataclass decorator explicitly on each non-mapped class. The new behavior is considered as correct as this is what the PEP 681 implementation expects when using a superclass to indicate dataclass behavior.

    References: #9179

  • [orm] [bug] Added support for PEP 586 Literal[] to be used in the _orm.registry.type_annotation_map as well as within Mapped constructs. To use custom types such as these, they must appear explicitly within the _orm.registry.type_annotation_map to be mapped. Pull request courtesy Frederik Aalund.

    As part of this change, the support for sqltypes.Enum in the _orm.registry.type_annotation_map has been expanded to include support for Literal[] types consisting of string values to be used, in addition to enum.Enum datatypes. If a Literal[] datatype

... (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)
codecov[bot] commented 1 year ago

Codecov Report

Merging #1304 (feeb0c7) into main (92c909a) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1304   +/-   ##
=======================================
  Coverage   60.04%   60.04%           
=======================================
  Files          94       94           
  Lines        8873     8873           
  Branches     1622     1622           
=======================================
  Hits         5328     5328           
  Misses       3111     3111           
  Partials      434      434           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

dependabot[bot] commented 1 year ago

Superseded by #1307.