Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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: 4 additions & 4 deletions src/neo4j/_async/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ async def verify_connectivity(
bookmark_manager: (
AsyncBookmarkManager | BookmarkManager | None
) = ...,
auth: Auth | tuple[t.Any, t.Any] = ...,
auth: Auth | tuple[str, str] = ...,
notifications_min_severity: (
T_NotificationMinimumSeverity | None
) = ...,
Expand Down Expand Up @@ -1101,7 +1101,7 @@ async def get_server_info(
bookmark_manager: (
AsyncBookmarkManager | BookmarkManager | None
) = ...,
auth: Auth | tuple[t.Any, t.Any] = ...,
auth: Auth | tuple[str, str] = ...,
notifications_min_severity: (
T_NotificationMinimumSeverity | None
) = ...,
Expand Down Expand Up @@ -1184,7 +1184,7 @@ async def supports_multi_db(self) -> bool:

async def verify_authentication(
self,
auth: Auth | tuple[t.Any, t.Any] | None = None,
auth: Auth | tuple[str, str] | None = None,
# all other arguments are experimental
# they may be change or removed any time without prior notice
session_connection_timeout: float = ...,
Expand All @@ -1208,7 +1208,7 @@ async def verify_authentication(

async def verify_authentication(
self,
auth: Auth | tuple[t.Any, t.Any] | None = None,
auth: Auth | tuple[str, str] | None = None,
**config,
) -> bool:
"""
Expand Down
8 changes: 4 additions & 4 deletions src/neo4j/_sync/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ def verify_connectivity(
bookmark_manager: (
BookmarkManager | BookmarkManager | None
) = ...,
auth: Auth | tuple[t.Any, t.Any] = ...,
auth: Auth | tuple[str, str] = ...,
notifications_min_severity: (
T_NotificationMinimumSeverity | None
) = ...,
Expand Down Expand Up @@ -1100,7 +1100,7 @@ def get_server_info(
bookmark_manager: (
BookmarkManager | BookmarkManager | None
) = ...,
auth: Auth | tuple[t.Any, t.Any] = ...,
auth: Auth | tuple[str, str] = ...,
notifications_min_severity: (
T_NotificationMinimumSeverity | None
) = ...,
Expand Down Expand Up @@ -1183,7 +1183,7 @@ def supports_multi_db(self) -> bool:

def verify_authentication(
self,
auth: Auth | tuple[t.Any, t.Any] | None = None,
auth: Auth | tuple[str, str] | None = None,
# all other arguments are experimental
# they may be change or removed any time without prior notice
session_connection_timeout: float = ...,
Expand All @@ -1207,7 +1207,7 @@ def verify_authentication(

def verify_authentication(
self,
auth: Auth | tuple[t.Any, t.Any] | None = None,
auth: Auth | tuple[str, str] | None = None,
**config,
) -> bool:
"""
Expand Down
2 changes: 1 addition & 1 deletion src/neo4j/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def __eq__(self, other: t.Any) -> bool:
AuthToken = Auth

if t.TYPE_CHECKING:
_TAuth = t.Union[t.Tuple[t.Any, t.Any], Auth, None]
_TAuth = t.Union[t.Tuple[str, str], Auth, None]


def basic_auth(user: str, password: str, realm: str | None = None) -> Auth:
Expand Down