]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improve error in dataclasses with table
authorFederico Caselli <cfederico87@gmail.com>
Wed, 9 Oct 2024 18:35:16 +0000 (20:35 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 10 Oct 2024 19:09:41 +0000 (21:09 +0200)
commit270b46cef3043d0e675ccb72b1e3a590f835dd4b
tree9be960dc74834a44abbbd37e980bd8239835ca36
parent176398a9fefc986f2fd2797c3ff3eb3f48e16cf6
Improve error in dataclasses with table

Added a better error when trying to map as dataclass a class while also
manually providing the ``__table__`` attribute.
This usage is currently not supported.

Fixes: #11973
Change-Id: I54c721b3f7447b2f062fa0cfb53b6a88c381df42
(cherry picked from commit 6ae7f2378971b16f024eb5ab851cc4533bc4e61a)
doc/build/changelog/unreleased_20/11973.rst [new file with mode: 0644]
lib/sqlalchemy/orm/decl_base.py
test/orm/declarative/test_dc_transforms.py