From: krave1986 Date: Wed, 15 Oct 2025 19:37:10 +0000 (+0800) Subject: Update collection_api.rst (#12912) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0651bde134c0038596893766a31498b6a6c3d8b;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. --- diff --git a/doc/build/orm/collection_api.rst b/doc/build/orm/collection_api.rst index 442e88c981..d1fbe8c00b 100644 --- a/doc/build/orm/collection_api.rst +++ b/doc/build/orm/collection_api.rst @@ -180,7 +180,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