]> 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:54:04 +0000 (09:54 -0400)
commitcc7cc3c9ec73055703acc78c8d92eb0242e5cd20
treeaf8a2272e4749ee0afd086294c65854f00b8f7b2
parente1935b1711dd10d1cb30e3990fef2dd2e0435f1f
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
doc/build/changelog/unreleased_14/8115.rst [new file with mode: 0644]
lib/sqlalchemy/util/deprecations.py
test/base/test_warnings.py