Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions docs/source/async_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
Async API Documentation
#######################

.. warning::
The whole async API is currently in experimental phase.

This means everything documented on this page might be removed or change
its API at any time (including in patch releases).

(See :ref:`filter-warnings-ref`)

.. versionadded:: 5.0

.. warning::
Expand Down
4 changes: 0 additions & 4 deletions neo4j/_async/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ def driver(
else:

@classmethod
@AsyncUtil.experimental_async(
"neo4j async is in experimental phase. It might be removed or "
"changed at any time (including patch releases)."
)
def driver(cls, uri, *, auth=None, **config) -> AsyncDriver:
"""Create a driver.

Expand Down
8 changes: 0 additions & 8 deletions neo4j/_async_compat/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ async def callback(cb, *args, **kwargs):
return await res
return res

experimental_async = experimental

@staticmethod
def shielded(coro_function):
assert asyncio.iscoroutinefunction(coro_function)
Expand All @@ -76,12 +74,6 @@ def callback(cb, *args, **kwargs):
if callable(cb):
return cb(*args, **kwargs)

@staticmethod
def experimental_async(message):
def f_(f):
return f
return f_

@staticmethod
def shielded(coro_function):
return coro_function
Expand Down
4 changes: 0 additions & 4 deletions neo4j/_sync/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ def driver(
else:

@classmethod
@Util.experimental_async(
"neo4j is in experimental phase. It might be removed or "
"changed at any time (including patch releases)."
)
def driver(cls, uri, *, auth=None, **config) -> Driver:
"""Create a driver.

Expand Down
12 changes: 1 addition & 11 deletions tests/unit/async_/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,7 @@

@wraps(AsyncGraphDatabase.driver)
def create_driver(*args, **kwargs):
if AsyncUtil.is_async_code:
with pytest.warns(ExperimentalWarning, match="async") as warnings:
driver = AsyncGraphDatabase.driver(*args, **kwargs)
print(warnings)
return driver
else:
return AsyncGraphDatabase.driver(*args, **kwargs)


def driver(*args, **kwargs):
return AsyncNeo4jDriver(*args, **kwargs)
return AsyncGraphDatabase.driver(*args, **kwargs)


@pytest.mark.parametrize("protocol", ("bolt://", "bolt+s://", "bolt+ssc://"))
Expand Down
12 changes: 1 addition & 11 deletions tests/unit/sync/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,7 @@

@wraps(GraphDatabase.driver)
def create_driver(*args, **kwargs):
if Util.is_async_code:
with pytest.warns(ExperimentalWarning, match="async") as warnings:
driver = GraphDatabase.driver(*args, **kwargs)
print(warnings)
return driver
else:
return GraphDatabase.driver(*args, **kwargs)


def driver(*args, **kwargs):
return Neo4jDriver(*args, **kwargs)
return GraphDatabase.driver(*args, **kwargs)


@pytest.mark.parametrize("protocol", ("bolt://", "bolt+s://", "bolt+ssc://"))
Expand Down