From: Mike Bayer Date: Fri, 17 Feb 2023 16:25:16 +0000 (-0500) Subject: more edits X-Git-Tag: rel_2_0_5~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c039941cfa2d06cdeed03b471f0a25ffb12c3a8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git more edits I can only see issues in the docs when they're live on the site, sorry Change-Id: I948b7c8e37657ca85d02843211cbfdb03aa5da75 --- diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py index 735e467160..4e0fd46049 100644 --- a/lib/sqlalchemy/ext/hybrid.py +++ b/lib/sqlalchemy/ext/hybrid.py @@ -232,7 +232,7 @@ example below that illustrates the use of :meth:`.hybrid_property.setter` and Above, there are three ``Interval.radius`` methods, but as each are decorated, first by the :class:`.hybrid_property` decorator and then by the ``@radius`` name itself, the end effect is that ``Interval.radius`` is -a single attribute with two different functions contained within it. +a single attribute with three different functions contained within it. This style of use is taken from `Python's documented use of @property `_. It is important to note that the way both ``@property`` as well as @@ -247,7 +247,7 @@ mypy and pyright. Python's own ``@property`` decorator does not have this limitation only because `these tools hardcode the behavior of @property `_, meaning this syntax -is no longer available to SQLAlchemy under :pep:`484` compliance. +is not available to SQLAlchemy under :pep:`484` compliance. In order to produce a reasonable syntax while remaining typing compliant, the :attr:`.hybrid_property.inplace` decorator allows the same