]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Allow inspection registrations from module reloads
authorw-Jessamine <148705640+w-Jessamine@users.noreply.github.com>
Mon, 29 Jun 2026 10:30:16 +0000 (06:30 -0400)
committerMichael Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Jul 2026 03:34:59 +0000 (03:34 +0000)
commit0c6e2f39df1e6748a916fc5f5a1a3b3296aed4af
treec04d5fcf8ae953aa0d1e9813a0fa1dd927a9d20e
parentbc8ffc900d0202bcb4887656e2f763abebcfba34
Allow inspection registrations from module reloads

Allowed the inspection registry to replace an existing registration with a
reloaded callable from the same module and name. This avoids an assertion
failure for tooling that unloads and reloads SQLAlchemy modules while still
rejecting conflicting registrations. Pull request courtersy w-Jessamine.

Fixes: #10748
Closes: #13402
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13402
Pull-request-sha: e54815ef0092da05277efab79b90b77e44734cb9

Change-Id: If2565206d6b861993df8c361511551e204120b5e
doc/build/changelog/unreleased_21/10748.rst [new file with mode: 0644]
lib/sqlalchemy/inspection.py
test/base/test_inspect.py