Skip to content

Commit 9ba565e

Browse files
fix formatting and linting
1 parent 6cdb7e8 commit 9ba565e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

redisvl/redis/connection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def get_async_redis_connection(url: Optional[str] = None, **kwargs) -> AsyncRedi
123123
# fallback to env var REDIS_URL
124124
return AsyncRedis.from_url(get_address_from_env(), **kwargs)
125125

126+
@staticmethod
126127
def validate_redis(
127128
client: Union[Redis, AsyncRedis],
128129
lib_name: Optional[str] = None,
@@ -159,7 +160,7 @@ def _validate_sync_redis(
159160
) -> None:
160161
"""Validates the sync client."""
161162
# Set client library name
162-
client.client_setinfo("LIB-NAME", make_lib_name(lib_name))
163+
client.client_setinfo("LIB-NAME", make_lib_name(lib_name)) # type: ignore
163164

164165
# Get list of modules
165166
modules_list = convert_bytes(client.module_list())
@@ -175,7 +176,7 @@ async def _validate_async_redis(
175176
) -> None:
176177
"""Validates the async client."""
177178
# Set client library name
178-
res = await client.client_setinfo("LIB-NAME", make_lib_name(lib_name))
179+
res = await client.client_setinfo("LIB-NAME", make_lib_name(lib_name)) # type: ignore
179180
print("SET ASYNC CLIENT NAME", res, flush=True)
180181

181182
# Get list of modules

0 commit comments

Comments
 (0)