]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix: add assertion to ensure 'existing' is not None
authorShamil <ashm.tech@proton.me>
Fri, 18 Apr 2025 20:27:10 +0000 (23:27 +0300)
committerShamil <ashm.tech@proton.me>
Fri, 18 Apr 2025 20:27:10 +0000 (23:27 +0300)
commit4b851862598f5791827f9c745de9f5c90fca012c
tree2f454b4ab0691a7c8844af99fa0781765c7b79f7
parent2e438c4f15bf8338b3325f40a8489015eee7da76
fix: add assertion to ensure 'existing' is not None

Prevented potential issues by asserting that 'existing' is never None.
Added to enforce invariant and improve debugging in edge cases.
lib/sqlalchemy/orm/identity.py