]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
prevent Mapped[] auto-column logic w/ fixed table
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 2 Mar 2022 16:51:57 +0000 (11:51 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 2 Mar 2022 16:51:57 +0000 (11:51 -0500)
commit3fd1a52794c5463854fe36cbe97595d8489bbf62
tree12597527384eb3af4a0866a52e89d4e0bce58fd6
parentafb9634fb28b00c7b0979660e3e0bfed6caafde5
prevent Mapped[] auto-column logic w/ fixed table

When a class has __table__, people will still want to
annotate the attributes on classes, so make sure a
Mapped annotation without a right side is only interpreted
as a column if there is no __table__

Change-Id: I7da4b4c43c4d2c8b6834b781569cb551e75b57b1
lib/sqlalchemy/orm/decl_base.py
test/orm/declarative/test_typed_mapping.py