From af16f2e07dc099d5c32f0c7a74c7029b67bdca61 Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Tue, 11 Oct 2022 11:42:49 +0200 Subject: [PATCH] Backporting docs fixes from 5 to 4.4. --- docs/source/api.rst | 7 +------ neo4j/debug.py | 2 +- neo4j/work/simple.py | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/docs/source/api.rst b/docs/source/api.rst index 4c90ea022..dc4ab71c1 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -593,7 +593,7 @@ context of the impersonated user. For this, the user for which the .. Note:: - The server or all servers of the cluster need to support impersonation when. + The server or all servers of the cluster need to support impersonation. Otherwise, the driver will raise :py:exc:`.ConfigurationError` as soon as it encounters a server that does not. @@ -848,11 +848,6 @@ Record .. autoclass:: neo4j.Record() - A :class:`neo4j.Record` is an immutable ordered collection of key-value - pairs. It is generally closer to a :py:class:`namedtuple` than to an - :py:class:`OrderedDict` inasmuch as iteration of the collection will - yield values rather than keys. - .. describe:: Record(iterable) Create a new record based on an dictionary-like iterable. diff --git a/neo4j/debug.py b/neo4j/debug.py index ae176d8b7..1e1a8e5d5 100644 --- a/neo4j/debug.py +++ b/neo4j/debug.py @@ -104,7 +104,7 @@ def stop(self): def watch(*logger_names, level=DEBUG, out=stderr): """Quick wrapper for using :class:`.Watcher`. - Create a Wathcer with the given configuration, enable watching and return + Create a Watcher with the given configuration, enable watching and return it. Example:: diff --git a/neo4j/work/simple.py b/neo4j/work/simple.py index 19eb52605..a2570a6c0 100644 --- a/neo4j/work/simple.py +++ b/neo4j/work/simple.py @@ -222,7 +222,7 @@ def run(self, query, parameters=None, **kwparameters): def last_bookmark(self): """Return the bookmark received following the last completed transaction. - Note: For auto-transaction (Session.run) this will trigger an consume for the current result. + Note: For auto-transaction (Session.run) this will trigger a consume for the current result. :returns: :class:`neo4j.Bookmark` object """