From: Mike Bayer Date: Sat, 20 May 2023 15:53:44 +0000 (-0400) Subject: use python highlight for model example in large collections X-Git-Tag: rel_2_0_16~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a6d41d5f540c5de3a73279cd729a8b197083bbf;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git use python highlight for model example in large collections apparently the pycon+sql highlight doesn't work with class definitions for some reason? seems like something to be aware of... Fixes: #9810 Change-Id: I5cfca5e0fb9d797ff4068526d05e181b4ff71ebf --- diff --git a/doc/build/orm/large_collections.rst b/doc/build/orm/large_collections.rst index ef1e651e1f..a081466e7e 100644 --- a/doc/build/orm/large_collections.rst +++ b/doc/build/orm/large_collections.rst @@ -34,7 +34,9 @@ Write Only Relationships The **write only** loader strategy is the primary means of configuring a :func:`_orm.relationship` that will remain writeable, but will not load its contents into memory. A write-only ORM configuration in modern -type-annotated Declarative form is illustrated below:: +type-annotated Declarative form is illustrated below: + +.. sourcecode:: python >>> from decimal import Decimal >>> from datetime import datetime