]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix the code examples and the grammatic in `declarative_tables.rst` (#12721) main
authorRoman Mashevskyi <romanmashevskyi@proton.me>
Mon, 7 Jul 2025 20:23:43 +0000 (23:23 +0300)
committerGitHub <noreply@github.com>
Mon, 7 Jul 2025 20:23:43 +0000 (22:23 +0200)
commit75163df8ef4896589d00b682813f01e1a436afcb
tree463a28068bd8c2e0c74e063377ca03daeac28a19
parent1d890da80dbde44a3f1270ab90313af29e13e0c7
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`.
doc/build/orm/declarative_tables.rst