From: krave1986 Date: Wed, 15 Oct 2025 19:37:10 +0000 (+0800) Subject: Update collection_api.rst (#12912) X-Git-Tag: rel_2_0_45~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d88e1e13d9721f2f3bb30ffadf8c67fe9842063;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Update collection_api.rst (#12912) In the Dictionary Collections section, the example code incorrectly calls .items() on the dictionary but shows dictionary output instead of the items() method's actual return value. (cherry picked from commit d0651bde134c0038596893766a31498b6a6c3d8b) --- diff --git a/doc/build/orm/collection_api.rst b/doc/build/orm/collection_api.rst index be8e4ea951..1777964cbb 100644 --- a/doc/build/orm/collection_api.rst +++ b/doc/build/orm/collection_api.rst @@ -197,7 +197,7 @@ may be appropriately parametrized:: >>> item = Item() >>> item.notes["a"] = Note("a", "atext") - >>> item.notes.items() + >>> item.notes {'a': <__main__.Note object at 0x2eaaf0>} :func:`.attribute_keyed_dict` will ensure that