fix falkordb linting issues (#650)
Refactor FalkorDB driver: change port type to int and clean up whitespace
This commit is contained in:
parent
8213d10d44
commit
daec70db65
1 changed files with 6 additions and 6 deletions
|
|
@ -66,7 +66,7 @@ class FalkorDriver(GraphDriver):
|
|||
def __init__(
|
||||
self,
|
||||
host: str = 'localhost',
|
||||
port: str = '6379',
|
||||
port: int = 6379,
|
||||
username: str | None = None,
|
||||
password: str | None = None,
|
||||
falkor_db: FalkorDB | None = None,
|
||||
|
|
@ -131,7 +131,7 @@ class FalkorDriver(GraphDriver):
|
|||
async def close(self) -> None:
|
||||
"""Close the driver connection."""
|
||||
if hasattr(self.client, 'aclose'):
|
||||
await self.client.aclose()
|
||||
await self.client.aclose() # type: ignore[reportUnknownMemberType]
|
||||
elif hasattr(self.client.connection, 'aclose'):
|
||||
await self.client.connection.aclose()
|
||||
elif hasattr(self.client.connection, 'close'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue