From: Mike Bayer Date: Mon, 13 Jun 2022 16:41:44 +0000 (-0400) Subject: need to use List here since we test on 3.7 at the moment X-Git-Tag: rel_2_0_0b1~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfa748a1e56e8429a5142a507bd860ff69555e0f;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git need to use List here since we test on 3.7 at the moment Change-Id: I8a92fb81a71ae3936f299e2794f1d710fea0a589 --- 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" ... ) ...