]> 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)
committerGitHub <noreply@github.com>
Tue, 31 May 2022 19:42:35 +0000 (21:42 +0200)
commit1e1431fbfb4992f8d85d3fd42ec06975e7f762f0
tree880dea56648fd7f5805d08f3e0989b2d7efae310
parentd97de97eff21af3bdacffc2b625feb7e0bd6c18c
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
doc/build/orm/declarative_styles.rst