]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix typos in docs
authorFederico Caselli <cfederico87@gmail.com>
Mon, 26 Feb 2024 21:16:38 +0000 (22:16 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 26 Feb 2024 21:16:38 +0000 (22:16 +0100)
Change-Id: Iaba3c5979af626055acb0068cc8aac0c7334b0e0

doc/build/orm/mapping_styles.rst
lib/sqlalchemy/engine/result.py
lib/sqlalchemy/ext/asyncio/result.py
lib/sqlalchemy/orm/query.py

index 4e3e3183797167c81c64c268c55b8ba0ce8ac0d9..8a4b8aece84eb0a965f92b8fe503e75b2b207618 100644 (file)
@@ -459,7 +459,7 @@ below.
    attributes (``x`` and ``y`` in this case) might change.
 
    Other forms of the above pattern include Python standard library
-   :ref:`cached_property <https://docs.python.org/3/library/functools.html#functools.cached_property>`
+   `cached_property <https://docs.python.org/3/library/functools.html#functools.cached_property>`_
    decorator (which is cached, and not re-computed each time), as well as SQLAlchemy's :class:`.hybrid_property` decorator which
    allows for attributes that can work for SQL querying as well.
 
index e353dff9d7c2d82ffbcbbd0914504a675c17db9f..fad6102551e2f933959e904bd5348b71f5baf82e 100644 (file)
@@ -1232,7 +1232,7 @@ class Result(_WithKeys, ResultInternal[Row[Unpack[_Ts]]]):
 
     @deprecated(
         "2.1.0",
-        "The :method:`.Result.tuples` method is deprecated, :class:`.Row` "
+        "The :meth:`.Result.tuples` method is deprecated, :class:`.Row` "
         "now behaves like a tuple and can unpack types directly.",
     )
     def tuples(self) -> TupleResult[Tuple[Unpack[_Ts]]]:
index c02c64706b965e62d7642e0934ad4a6af71b7c73..7fca27b79700db52bcb6d1d9c531eaa1e2afaf40 100644 (file)
@@ -130,7 +130,7 @@ class AsyncResult(_WithKeys, AsyncCommon[Row[Unpack[_Ts]]]):
 
     @deprecated(
         "2.1.0",
-        "The :method:`.AsyncResult.tuples` method is deprecated, "
+        "The :meth:`.AsyncResult.tuples` method is deprecated, "
         ":class:`.Row` now behaves like a tuple and can unpack types "
         "directly.",
     )
index b1a01f00a1f72d627fc63446ac4e6f00f52c5816..6a9fd22b658394bedc7b17c2b144e03617537cbd 100644 (file)
@@ -300,7 +300,7 @@ class Query(
 
     @deprecated(
         "2.1.0",
-        "The :method:`.Query.tuples` method is deprecated, :class:`.Row` "
+        "The :meth:`.Query.tuples` method is deprecated, :class:`.Row` "
         "now behaves like a tuple and can unpack types directly.",
     )
     def tuples(self: Query[_O]) -> Query[Tuple[_O]]: