From 8a171bb3391e916d19ddf853dc2f9f5e5756c16e Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Mon, 26 Feb 2024 22:16:38 +0100 Subject: [PATCH] fix typos in docs Change-Id: Iaba3c5979af626055acb0068cc8aac0c7334b0e0 --- doc/build/orm/mapping_styles.rst | 2 +- lib/sqlalchemy/engine/result.py | 2 +- lib/sqlalchemy/ext/asyncio/result.py | 2 +- lib/sqlalchemy/orm/query.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/build/orm/mapping_styles.rst b/doc/build/orm/mapping_styles.rst index 4e3e318379..8a4b8aece8 100644 --- a/doc/build/orm/mapping_styles.rst +++ b/doc/build/orm/mapping_styles.rst @@ -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 ` + `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. diff --git a/lib/sqlalchemy/engine/result.py b/lib/sqlalchemy/engine/result.py index e353dff9d7..fad6102551 100644 --- a/lib/sqlalchemy/engine/result.py +++ b/lib/sqlalchemy/engine/result.py @@ -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]]]: diff --git a/lib/sqlalchemy/ext/asyncio/result.py b/lib/sqlalchemy/ext/asyncio/result.py index c02c64706b..7fca27b797 100644 --- a/lib/sqlalchemy/ext/asyncio/result.py +++ b/lib/sqlalchemy/ext/asyncio/result.py @@ -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.", ) diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index b1a01f00a1..6a9fd22b65 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -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]]: -- 2.47.2