From 4244cf435edd9c52e5353e8dac51443af62af950 Mon Sep 17 00:00:00 2001 From: aplatkouski <5857672+aplatkouski@users.noreply.github.com> Date: Sat, 13 Jun 2020 12:16:15 +0300 Subject: [PATCH] Fix lonely dots in docstrings Signed-off-by: aplatkouski <5857672+aplatkouski@users.noreply.github.com> --- lib/sqlalchemy/dialects/postgresql/json.py | 8 ++++---- lib/sqlalchemy/engine/base.py | 4 ++-- lib/sqlalchemy/engine/events.py | 4 ++-- lib/sqlalchemy/engine/mock.py | 4 ++-- lib/sqlalchemy/orm/query.py | 4 ++-- lib/sqlalchemy/orm/session.py | 4 ++-- lib/sqlalchemy/orm/util.py | 4 ++-- lib/sqlalchemy/sql/visitors.py | 4 ++-- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/sqlalchemy/dialects/postgresql/json.py b/lib/sqlalchemy/dialects/postgresql/json.py index ea7b04d4f8..255f1af21d 100644 --- a/lib/sqlalchemy/dialects/postgresql/json.py +++ b/lib/sqlalchemy/dialects/postgresql/json.py @@ -234,8 +234,8 @@ class JSON(sqltypes.JSON): class JSONB(JSON): """Represent the PostgreSQL JSONB type. - The :class:`_postgresql.JSONB` type stores arbitrary JSONB format data, e. - g.:: + The :class:`_postgresql.JSONB` type stores arbitrary JSONB format data, + e.g.:: data_table = Table('data_table', metadata, Column('id', Integer, primary_key=True), @@ -249,8 +249,8 @@ class JSONB(JSON): ) The :class:`_postgresql.JSONB` type includes all operations provided by - :class:`_types.JSON`, including the same behaviors for indexing operations - . + :class:`_types.JSON`, including the same behaviors for indexing + operations. It also adds additional operators specific to JSONB, including :meth:`.JSONB.Comparator.has_key`, :meth:`.JSONB.Comparator.has_all`, :meth:`.JSONB.Comparator.has_any`, :meth:`.JSONB.Comparator.contains`, diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index ffd3724625..e7eec87962 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -2510,8 +2510,8 @@ class Engine(Connectable, log.Identified): return "Engine(%r)" % self.url def dispose(self): - """Dispose of the connection pool used by this :class:`_engine.Engine` - . + """Dispose of the connection pool used by this + :class:`_engine.Engine`. This has the effect of fully closing all **currently checked in** database connections. Connections that are still checked out diff --git a/lib/sqlalchemy/engine/events.py b/lib/sqlalchemy/engine/events.py index ef760bb54d..bd664fb8fb 100644 --- a/lib/sqlalchemy/engine/events.py +++ b/lib/sqlalchemy/engine/events.py @@ -235,8 +235,8 @@ class ConnectionEvents(event.Events): .. versionadded: 1.4 - :param result: :class:`_engine.CursorResult` generated by the execution - . + :param result: :class:`_engine.CursorResult` generated by the + execution. """ diff --git a/lib/sqlalchemy/engine/mock.py b/lib/sqlalchemy/engine/mock.py index d6a542e196..6c91d1434c 100644 --- a/lib/sqlalchemy/engine/mock.py +++ b/lib/sqlalchemy/engine/mock.py @@ -92,8 +92,8 @@ def create_mock_engine(url, executor, **kw): string using :meth:`.DDLElement.compile`. .. versionadded:: 1.4 - the :func:`.create_mock_engine` function replaces - the previous "mock" engine strategy used with :func:`_sa.create_engine` - . + the previous "mock" engine strategy used with + :func:`_sa.create_engine`. .. seealso:: diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 2a1a04d28b..bf162a001f 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -645,8 +645,8 @@ class Query( .. note:: The :meth:`_query.Query.with_labels` method *only* applies the output of :attr:`_query.Query.statement`, and *not* to any of - the result-row invoking systems of :class:`_query.Query` itself, e. - g. + the result-row invoking systems of :class:`_query.Query` itself, + e.g. :meth:`_query.Query.first`, :meth:`_query.Query.all`, etc. To execute a query using :meth:`_query.Query.with_labels`, invoke the diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 2ffab67320..88a7620f1f 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -1674,8 +1674,8 @@ class Session(_SessionClassMethods): def bind_mapper(self, mapper, bind): """Associate a :class:`_orm.Mapper` or arbitrary Python class with a - "bind", e.g. an :class:`_engine.Engine` or :class:`_engine.Connection` - . + "bind", e.g. an :class:`_engine.Engine` or + :class:`_engine.Connection`. The given entity is added to a lookup used by the :meth:`.Session.get_bind` method. diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 3630b08af3..a4a3f11128 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -890,8 +890,8 @@ def aliased(element, alias=None, name=None, flat=False, adapt_on_names=False): ORM-mapped in this case. :param element: element to be aliased. Is normally a mapped class, - but for convenience can also be a :class:`_expression.FromClause` element - . + but for convenience can also be a :class:`_expression.FromClause` + element. :param alias: Optional selectable unit to map the element to. This is usually used to link the object to a subquery, and should be an aliased diff --git a/lib/sqlalchemy/sql/visitors.py b/lib/sqlalchemy/sql/visitors.py index 4d1638b156..9ffde2c0ae 100644 --- a/lib/sqlalchemy/sql/visitors.py +++ b/lib/sqlalchemy/sql/visitors.py @@ -380,8 +380,8 @@ class InternalTraversal(util.with_metaclass(_InternalTraversalType, object)): """ dp_table_hint_list = symbol("TH") - """Visit the ``_hints`` collection of a :class:`_expression.Select` object - . + """Visit the ``_hints`` collection of a :class:`_expression.Select` + object. """ -- 2.47.3