]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
need to use List here since we test on 3.7 at the moment
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jun 2022 16:41:44 +0000 (12:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jun 2022 16:41:44 +0000 (12:41 -0400)
Change-Id: I8a92fb81a71ae3936f299e2794f1d710fea0a589

doc/build/orm/quickstart.rst

index ffad87c987dc1d92fc4e05f8832042fea5145787..e0eb294f1954c7b5fb5d6ded0a878eb42537e41e 100644 (file)
@@ -28,6 +28,7 @@ which we will be querying from the database.  This structure, known as a
 Python object model, as well as :term:`database metadata` that describes
 real SQL tables that exist, or will exist, in a particular database::
 
+    >>> from typing import List
     >>> from typing import Optional
     >>> from sqlalchemy import ForeignKey
     >>> from sqlalchemy import String
@@ -46,7 +47,7 @@ real SQL tables that exist, or will exist, in a particular database::
     ...     name: Mapped[str] = mapped_column(String(30))
     ...     fullname: Mapped[Optional[str]]
     ...
-    ...     addresses: Mapped[list["Address"]] = relationship(
+    ...     addresses: Mapped[List["Address"]] = relationship(
     ...         back_populates="user", cascade="all, delete-orphan"
     ...     )
     ...