summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-07-15 12:25:22 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-07-15 12:37:06 -0400
commit0aa56cd729407dff1d96c61432b6f3a2a7124d39 (patch)
tree4cda2e1335d2a942632428cb93810a05d4606f1c /lib/sqlalchemy/orm/base.py
parenta0597341195ba7445ef1e9c69092e3bd29427aec (diff)
downloadsqlalchemy-0aa56cd729407dff1d96c61432b6f3a2a7124d39.tar.gz
make anno-only Mapped[] column available for mixins
Documentation is relying on the recently improved behavior of produce_column_copies() to make sure everything is available on cls for a declared_attr. therefore for anno-only attribute, we also need to generate the mapped_column() up front before scan is called. noticed in pylance, allow @declared_attr to recognize @classmethod also which allows letting typing tools know something is explicitly a classmethod Change-Id: I07ff1a642a75679f685914a33c674807929f4918
Diffstat (limited to 'lib/sqlalchemy/orm/base.py')
0 files changed, 0 insertions, 0 deletions