From: Dennis Magnusson Date: Wed, 30 Oct 2024 17:33:40 +0000 (+0200) Subject: Update declarative_styles.rst: add missing import from typing in the example (#12034) X-Git-Tag: rel_2_0_37~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0b19dbbcbd6da730433556e738edb14fddb4bec;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Update declarative_styles.rst: add missing import from typing in the example (#12034) * Update declarative_styles.rst: add missing import * Update declarative_styles.rst: make import statement style consistent (cherry picked from commit f418ac8d38a26936aa9a8ed9befe210c88b97f33) --- diff --git a/doc/build/orm/declarative_styles.rst b/doc/build/orm/declarative_styles.rst index 48897ee6d6..8feb5398b1 100644 --- a/doc/build/orm/declarative_styles.rst +++ b/doc/build/orm/declarative_styles.rst @@ -51,6 +51,7 @@ With the declarative base class, new mapped classes are declared as subclasses of the base:: from datetime import datetime + from typing import List from typing import Optional from sqlalchemy import ForeignKey