From 890fd0cd363a0c06b780e54751fae468a9926abe Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Sat, 7 Oct 2023 02:48:29 -0400 Subject: [PATCH] Fix typo in Session.get_one() docs A typo in the docstrings [here](https://docs.sqlalchemy.org/en/20/orm/session_api.html#sqlalchemy.orm.Session.get_one) shows the incorrectly formatted text: ![Screenshot 2023-10-07 at 16 24 19](https://github.com/sqlalchemy/sqlalchemy/assets/12053937/95cbfbfa-dac3-465a-8e27-ec8e2a223117) This pull request is: - [X] A documentation / typographical / small typing error fix - Good to go, no issue or tests are needed - [ ] A short code fix - please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted. - Please include: `Fixes: #` in the commit message - please include tests. one line code fixes without tests will not be accepted. - [ ] A new feature implementation - please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look. - Please include: `Fixes: #` in the commit message - please include tests. **Have a nice day!** Closes: #10437 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10437 Pull-request-sha: 82ef25ecbc5b39487b5b55bedb43df9c2a57ae2e Change-Id: I4ae54733c4bd63239fc94a7fd2099bb3896718ca --- lib/sqlalchemy/orm/scoping.py | 2 +- lib/sqlalchemy/orm/session.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/orm/scoping.py b/lib/sqlalchemy/orm/scoping.py index 3c7a159acf..c03cfe8d54 100644 --- a/lib/sqlalchemy/orm/scoping.py +++ b/lib/sqlalchemy/orm/scoping.py @@ -1097,7 +1097,7 @@ class scoped_session(Generic[_S]): For a detailed documentation of the arguments see the method :meth:`.Session.get`. - ..versionadded: 2.0.22 + .. versionadded:: 2.0.22 :return: The object instance, or ``None``. diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 1b48b90150..7f77a9bb77 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -3671,7 +3671,7 @@ class Session(_SessionClassMethods, EventTarget): For a detailed documentation of the arguments see the method :meth:`.Session.get`. - ..versionadded: 2.0.22 + .. versionadded:: 2.0.22 :return: The object instance, or ``None``. -- 2.47.3