]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Update declarative_styles.rst: Update code example to attrs TNG usage. (#8072)
authorPatrick Gerken <do3cc@users.noreply.github.com>
Tue, 31 May 2022 19:42:35 +0000 (21:42 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 31 May 2022 19:43:25 +0000 (21:43 +0200)
commit1d77afcfc46cb15a6b2e3317f985df4e60a70286
treede9a8433cc587e7a9c32842fce2d30f9cdf603a5
parent6a9f23038ea8ace5c7fb2c323f2ee38a15fa07dd
Update declarative_styles.rst: Update code example to attrs TNG usage. (#8072)

* Update declarative_styles.rst

Update docs to new style usage of attrs.
This is the default since December 2021.
While the old style still works, the newer one looks much nicer and is likely to be dominant pretty quickly. Imho.

* Update declarative_styles.rst

* Update declarative_styles.rst

(cherry picked from commit 1e1431fbfb4992f8d85d3fd42ec06975e7f762f0)
doc/build/orm/declarative_styles.rst