diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-04-21 10:39:09 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-04-21 10:42:21 -0400 |
commit | ed3f2c617239668d74ad3d86aeda0ca2030a5933 (patch) | |
tree | 2c1d1881c6b2d0d9c74d41362960e575ec0c404a /test/dialect/postgresql/test_compiler.py | |
parent | 368086e9fc49c7a1ca972480e0134d8e7a9f0544 (diff) | |
download | sqlalchemy-ed3f2c617239668d74ad3d86aeda0ca2030a5933.tar.gz |
Limit dc field logic to only fields that are definitely dc
Fixed regression where recent changes to support Python dataclasses had the
inadvertent effect that an ORM mapped class could not successfully override
the ``__new__()`` method.
In this case the "__new__" method comes out as staticmethod in
cls.__dict__ vs. a function in the metaclass dict_, so comparing
using identity fails. I was hoping not to have too much
"dataclass" hardcoded, the logic here if it were generalized
to other attribute declaration systems there
would still have a flag that indicates an attribute is part of
the "special declaration system".
Fixes: #6331
Change-Id: Ia28a44fb57c668fa2fc5cd1ff38fd511f2c747e6
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
0 files changed, 0 insertions, 0 deletions