]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update declarative_mixins.rst
authorserzey <skn.zbk@gmail.com>
Tue, 16 Feb 2021 09:10:03 +0000 (10:10 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 Feb 2021 14:58:55 +0000 (09:58 -0500)
Variables ta and tb should be instances of TypeA and TypeB respectively.

(cherry picked from commit f41b9cbcdb0b6116cc3e2d15f53983516d82b06d)

Change-Id: I084ec293b948a4b594f210e758ca0a05483ca8da

doc/build/orm/extensions/declarative/mixins.rst

index 509b1d34c687a65e40d8fe5b9c7cd37660d941a4..b308f118d0b16de6d578be6d9fb950dc1ce003e1 100644 (file)
@@ -348,7 +348,7 @@ attribute of each ``StringAttribute`` instance.
 argument ``strings``, a list of strings::
 
     ta = TypeA(strings=['foo', 'bar'])
-    tb = TypeA(strings=['bat', 'bar'])
+    tb = TypeB(strings=['bat', 'bar'])
 
 This list will generate a collection
 of ``StringAttribute`` objects, which are persisted into a table that's