]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
dont transfer __weakref__ to regenerated class
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Jun 2022 13:53:43 +0000 (09:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Jun 2022 13:55:30 +0000 (09:55 -0400)
commited7eb6f7f19bd26e984bc3be065243f8ead38b25
treec6011046c045040520924450d3edbfd5b6d9151d
parent23b4f77983cd04f86971cd3169a90935b0a07187
dont transfer __weakref__ to regenerated class

Repaired a deprecation warning class decorator that was preventing key
objects such as :class:`_engine.Connection` from having a proper
``__weakref__`` attribute, causing operations like Python standard library
``inspect.getmembers()`` to fail.

Fixes: #8115
Change-Id: Ifd0bc2325fb9dc9e1431998c308b7fc081968373
(cherry picked from commit cc7cc3c9ec73055703acc78c8d92eb0242e5cd20)
doc/build/changelog/unreleased_14/8115.rst [new file with mode: 0644]
lib/sqlalchemy/util/deprecations.py
test/base/test_warnings.py