]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix typo in session.reset docs
authorFederico Caselli <cfederico87@gmail.com>
Fri, 29 Dec 2023 23:14:39 +0000 (00:14 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 29 Dec 2023 23:14:39 +0000 (00:14 +0100)
Change-Id: I6073cc623f216ffad8c18396001191b38eccc129

lib/sqlalchemy/orm/scoping.py
lib/sqlalchemy/orm/session.py

index f5f08c72f5eb8e5d1a29a23d640cad6afdc5ed60..e720c7cebf751e11b74ecbf90f7954dff4ec8808 100644 (file)
@@ -534,12 +534,12 @@ class scoped_session(Generic[_S]):
             behalf of the :class:`_orm.scoping.scoped_session` class.
 
         This method provides for same "reset-only" behavior that the
-        :meth:_orm.Session.close method has provided historically, where the
+        :meth:`_orm.Session.close` method has provided historically, where the
         state of the :class:`_orm.Session` is reset as though the object were
         brand new, and ready to be used again.
-        The method may then be useful for :class:`_orm.Session` objects
+        This method may then be useful for :class:`_orm.Session` objects
         which set :paramref:`_orm.Session.close_resets_only` to ``False``,
-        so that "reset only" behavior is still available from this method.
+        so that "reset only" behavior is still available.
 
         .. versionadded:: 2.0.22
 
index 094e029ae77157c5743e50c3d672cfafb0659847..643eee5d53280c0a28ba09676cb482788780870d 100644 (file)
@@ -2472,12 +2472,12 @@ class Session(_SessionClassMethods, EventTarget):
         :class:`_orm.Session`, resetting the session to its initial state.
 
         This method provides for same "reset-only" behavior that the
-        :meth:_orm.Session.close method has provided historically, where the
+        :meth:`_orm.Session.close` method has provided historically, where the
         state of the :class:`_orm.Session` is reset as though the object were
         brand new, and ready to be used again.
-        The method may then be useful for :class:`_orm.Session` objects
+        This method may then be useful for :class:`_orm.Session` objects
         which set :paramref:`_orm.Session.close_resets_only` to ``False``,
-        so that "reset only" behavior is still available from this method.
+        so that "reset only" behavior is still available.
 
         .. versionadded:: 2.0.22