]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
merge column args from Annotated left side
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Jun 2022 16:56:27 +0000 (12:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Jun 2022 17:36:06 +0000 (13:36 -0400)
commit5950a9d05f1cc123009223baa1915cc15f3340a7
treec8468c6724b6832d08b483f463005884ad3bacdb
parentf19e50ab75cfc904acef31434c92542f3ab50d61
merge column args from Annotated left side

because we are forced by pep-681 to use the argument
"default", we need a way to have client Column default
separate from a dataclasses level default.  Also, pep-681
does not support deriving the descriptor function from
Annotated, so allow a brief right side mapped_column() to
be present that will have more column-centric arguments
from the left side Annotated to be merged.

Change-Id: I039be1628d498486ba013b2798e1392ed1cd7f9f
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/testing/schema.py
test/orm/declarative/test_dc_transforms.py
test/orm/declarative/test_mixin.py
test/orm/declarative/test_typed_mapping.py