Skip to content

Commit 6a1d578

Browse files
committed
Editorial changes in warning message and docs.
1 parent 13e6d98 commit 6a1d578

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/source/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ See also https://github.com/neo4j/neo4j-python-driver/wiki/preview-features
10461046
:Type: :data:`None`, :class:`.Auth` or ``(user, password)``-tuple
10471047
:Default: :data:`None` - use the authentication information provided during driver creation.
10481048

1049-
.. versionadded:: 5.x
1049+
.. versionadded:: 5.8
10501050

10511051

10521052
.. _session-notifications-min-severity-ref:

src/neo4j/_async/driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def encrypted(self) -> bool:
503503

504504
def _prepare_session_config(self, **config):
505505
if "auth" in config:
506-
preview_warn("User switching is a preview features.",
506+
preview_warn("User switching is a preview feature.",
507507
stack_level=3)
508508
_normalize_notifications_config(config)
509509
return config
@@ -1165,7 +1165,7 @@ async def supports_session_auth(self) -> bool:
11651165
won't throw a :exc:`ConfigurationError` when trying to use this
11661166
driver feature.
11671167
1168-
.. versionadded:: 5.x
1168+
.. versionadded:: 5.8
11691169
"""
11701170
async with self.session() as session:
11711171
await session._connect(READ_ACCESS)

src/neo4j/_sync/driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def encrypted(self) -> bool:
502502

503503
def _prepare_session_config(self, **config):
504504
if "auth" in config:
505-
preview_warn("User switching is a preview features.",
505+
preview_warn("User switching is a preview feature.",
506506
stack_level=3)
507507
_normalize_notifications_config(config)
508508
return config
@@ -1164,7 +1164,7 @@ def supports_session_auth(self) -> bool:
11641164
won't throw a :exc:`ConfigurationError` when trying to use this
11651165
driver feature.
11661166
1167-
.. versionadded:: 5.x
1167+
.. versionadded:: 5.8
11681168
"""
11691169
with self.session() as session:
11701170
session._connect(READ_ACCESS)

testkitbackend/_async/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ async def NewSession(backend, data):
553553
if data.get("authorizationToken"):
554554
config["auth"] = fromtestkit.to_auth_token(data, "authorizationToken")
555555
expected_warnings.append(
556-
(neo4j.PreviewWarning, "User switching is a preview features.")
556+
(neo4j.PreviewWarning, "User switching is a preview feature.")
557557
)
558558
fromtestkit.set_notifications_config(config, data)
559559
if expected_warnings:

testkitbackend/_sync/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def NewSession(backend, data):
553553
if data.get("authorizationToken"):
554554
config["auth"] = fromtestkit.to_auth_token(data, "authorizationToken")
555555
expected_warnings.append(
556-
(neo4j.PreviewWarning, "User switching is a preview features.")
556+
(neo4j.PreviewWarning, "User switching is a preview feature.")
557557
)
558558
fromtestkit.set_notifications_config(config, data)
559559
if expected_warnings:

0 commit comments

Comments
 (0)