fix falkordb linting issues (#650)

Refactor FalkorDB driver: change port type to int and clean up whitespace
This commit is contained in:
Daniel Chalef 2025-06-30 12:55:05 -07:00 committed by GitHub
parent 8213d10d44
commit daec70db65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'):