]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Allow None as default values for MutableDict
authorNils Philippsen <nils@tiptoe.de>
Mon, 27 Feb 2023 18:27:50 +0000 (19:27 +0100)
committerNils Philippsen <nils@tiptoe.de>
Tue, 28 Feb 2023 21:02:54 +0000 (22:02 +0100)
commitb493a3fc183ade9879c81d0d0c3d3a0666ce6e2d
tree636576268e2f043dc2a5888f03046ed192ede8e8
parentda70478eb2eafe9c76b836217371e029c3c820e3
Allow None as default values for MutableDict

Previously, e.g. `MutableDict.pop(..., None)` wouldn’t return `None` if
the key doesn’t exist.

Fixes: #9380
Signed-off-by: Nils Philippsen <nils@tiptoe.de>
lib/sqlalchemy/ext/mutable.py
test/ext/test_mutable.py