summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/attributes.py
diff options
context:
space:
mode:
authorDiana Clarke <diana.joan.clarke@gmail.com>2017-03-16 16:05:18 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-03-21 15:42:42 -0400
commitcaeb274e287f514a50524fc9fe4aeedcb3740147 (patch)
tree0668af2a6bbe4dce44ee4ea1c611a5f6ed856b31 /lib/sqlalchemy/orm/attributes.py
parentf881dae8179b94f72ab0dc85d8f62be8c9ce2fe0 (diff)
downloadsqlalchemy-caeb274e287f514a50524fc9fe4aeedcb3740147.tar.gz
Allow reuse of hybrid_property across subclasses
The :class:`sqlalchemy.ext.hybrid.hybrid_property` class now supports calling mutators like ``@setter``, ``@expression`` etc. multiple times across subclasses, and now provides a ``@getter`` mutator, so that a particular hybrid can be repurposed across subclasses or other classes. This now matches the behavior of ``@property`` in standard Python. Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com> Fixes: #3911 Fixes: #3912 Change-Id: Iff033d8ccaae20ded9289cbfa789c376759381f5
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
0 files changed, 0 insertions, 0 deletions