From d0651bde134c0038596893766a31498b6a6c3d8b Mon Sep 17 00:00:00 2001 From: krave1986 Date: Thu, 16 Oct 2025 03:37:10 +0800 Subject: [PATCH] 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. --- doc/build/orm/collection_api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3