diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-02-17 11:23:41 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-02-17 11:23:41 -0500 |
commit | 5355171d538ad868cbbf1fa06bda21e7b969a8f2 (patch) | |
tree | 17a7b426c6d5158c4e3d9e130b09f0ff66778a70 /lib/sqlalchemy/ext | |
parent | a2a023d0f0589cca565ddecdd3b50976daf64ff9 (diff) | |
download | sqlalchemy-5355171d538ad868cbbf1fa06bda21e7b969a8f2.tar.gz |
typo, captions
Change-Id: I547e66b60f5a7b2901a76ebc59469bce018e05ff
Diffstat (limited to 'lib/sqlalchemy/ext')
-rw-r--r-- | lib/sqlalchemy/ext/hybrid.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py index 1ff5a38d3..735e46716 100644 --- a/lib/sqlalchemy/ext/hybrid.py +++ b/lib/sqlalchemy/ext/hybrid.py @@ -212,6 +212,8 @@ attribute repeatedly, using the **same attribute name** each time, as in the example below that illustrates the use of :meth:`.hybrid_property.setter` and :meth:`.hybrid_property.expression` for the ``Interval.radius`` descriptor:: + # correct use, however is not accepted by pep-484 tooling + class Interval(Base): # ... @@ -252,6 +254,8 @@ the :attr:`.hybrid_property.inplace` decorator allows the same decorator to be re-used with different method names, while still producing a single decorator under one name:: + # correct use which is also accepted by pep-484 tooling + class Interval(Base): # ... @@ -266,7 +270,7 @@ a single decorator under one name:: @radius.inplace.expression @classmethod - def _radius_expression(cls) -> ColumnElement[float]:: + def _radius_expression(cls) -> ColumnElement[float]: return type_coerce(func.abs(cls.length) / 2, Float) Using :attr:`.hybrid_property.inplace` further qualifies the use of the |