]> 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:07:44 +0000 (21:07 +0200)
commit6ae7f2378971b16f024eb5ab851cc4533bc4e61a
treeb8d439fe780375a1f62cc1d9263c6a74e84109b8
parent2892aaa108c3fb9d703083579abea938a1ea75a3
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
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