]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update declarative_styles.rst: add missing import from typing in the example (#12034)
authorDennis Magnusson <magnden@gmail.com>
Wed, 30 Oct 2024 17:33:40 +0000 (19:33 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 30 Oct 2024 17:34:58 +0000 (18:34 +0100)
* Update declarative_styles.rst: add missing import

* Update declarative_styles.rst: make import statement style consistent

(cherry picked from commit f418ac8d38a26936aa9a8ed9befe210c88b97f33)

doc/build/orm/declarative_styles.rst

index 48897ee6d6d89c6e0829f79350b6c9d96400ddcc..8feb5398b10280daa8596a3f9173b0d1e6baaf98 100644 (file)
@@ -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