diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-25 14:29:30 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-29 19:25:59 -0500 |
commit | 3e3e3ab0d46b8912649afc7c3eb63b76c19d93fe (patch) | |
tree | f2c5b6fde3c6679138b255056d1b38db2ac67fc6 /test/dialect/postgresql/test_compiler.py | |
parent | 78833af4e650d37e6257cfbb541e4db56e2a285f (diff) | |
download | sqlalchemy-3e3e3ab0d46b8912649afc7c3eb63b76c19d93fe.tar.gz |
annotated / DC forms for association proxy
Added support for the :func:`.association_proxy` extension function to
take part within Python ``dataclasses`` configuration, when using
the native dataclasses feature described at
:ref:`orm_declarative_native_dataclasses`. Included are attribute-level
arguments including :paramref:`.association_proxy.init` and
:paramref:`.association_proxy.default_factory`.
Documentation for association proxy has also been updated to use
"Annotated Declarative Table" forms within examples, including type
annotations used for :class:`.AssocationProxy` itself.
Also modernized documentation examples in sqlalchemy.ext.mutable,
which was not up to date even for 1.4 style code.
Corrected typing for relationship(secondary) where "secondary"
accepts a callable (i.e. lambda) as well
Fixes: #8878
Fixes: #8876
Fixes: #8880
Change-Id: Ibd4f3591155a89f915713393e103e61cc072ed57
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
0 files changed, 0 insertions, 0 deletions