]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update declarative_mixins.rst 5946/head
authorserzey <skn.zbk@gmail.com>
Tue, 16 Feb 2021 09:10:03 +0000 (10:10 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Feb 2021 09:10:03 +0000 (10:10 +0100)
Variables ta and tb should be instances of TypeA and TypeB respectively.

doc/build/orm/declarative_mixins.rst

index 560bda134189a177b73e91a957d4bdd6ab570c68..a0229fe88bbb4570178912dcb403393464c22713 100644 (file)
@@ -352,7 +352,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