Skip to content

Commit 0801f7e

Browse files
committed
Add deprecation to API docs as well
1 parent 9d77e8d commit 0801f7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

neo4j/api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ def version_info(self):
219219
220220
:return: Server Version or None
221221
:rtype: tuple
222+
223+
.. deprecated:: 4.3
224+
`version_info` will be removed in version 5.0. Use
225+
:meth:`~ServerInfo.agent`, :meth:`~ServerInfo.protocol_version`,
226+
or call the `dbms.components` procedure instead.
222227
"""
223228
if not self.agent:
224229
return None

0 commit comments

Comments
 (0)