]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
typo, captions
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Feb 2023 16:23:41 +0000 (11:23 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Feb 2023 16:23:41 +0000 (11:23 -0500)
Change-Id: I547e66b60f5a7b2901a76ebc59469bce018e05ff

lib/sqlalchemy/ext/hybrid.py

index 1ff5a38d385fa5f155009a3f370b89dc26bab3dc..735e46716058c287d41b0552b5737e08b470ab11 100644 (file)
@@ -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