From dfa748a1e56e8429a5142a507bd860ff69555e0f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 13 Jun 2022 12:41:44 -0400 Subject: [PATCH] need to use List here since we test on 3.7 at the moment Change-Id: I8a92fb81a71ae3936f299e2794f1d710fea0a589 --- doc/build/orm/quickstart.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/build/orm/quickstart.rst b/doc/build/orm/quickstart.rst index ffad87c987..e0eb294f19 100644 --- a/doc/build/orm/quickstart.rst +++ b/doc/build/orm/quickstart.rst @@ -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" ... ) ... -- 2.47.2