]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix the code examples and the grammatic in `declarative_tables.rst` (#12721)
authorRoman Mashevskyi <romanmashevskyi@proton.me>
Mon, 7 Jul 2025 20:23:43 +0000 (23:23 +0300)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 7 Jul 2025 20:24:27 +0000 (22:24 +0200)
commite60d68f000ca5ad3451f7b8136f768bdde70646d
tree42aa94f529d50ed1d66ec1bd1d89c19656986d1b
parentf183d70d1b4299969d5ea8bf33b2943b82378367
Fix the code examples and the grammatic in `declarative_tables.rst` (#12721)

* Fix the code example in `declarative_tables.rst`

Add an import of a `Optional` class from the `typing` library in the
code example of the "Union types inside the Type Map" chapter.

* Fix the code example in `declarative_tables.rst`

Replace the import of the `deferred` function to `column_property` from
the `sqlalchemy.orm` package in first code example of the "Applying
Load, Persistence and Mapping Options for Imperative Table Columns"
chapter.

* Fix the grammatic in `declarative_tables.rst`

Remove the unnecessary article in the second paragraph of the
"Mapping to an Explicit Set of Primary Key Columns" chapter in
`declarative_tables.rst`.

(cherry picked from commit 75163df8ef4896589d00b682813f01e1a436afcb)
doc/build/orm/declarative_tables.rst