Skip to content

Commit e3c4585

Browse files
committed
Resolve merge with main: regenerate uv.lock; fix mypy type annotation in Redis connection factory to allow cluster/non-cluster assignments
2 parents a08418e + 6eeb32f commit e3c4585

File tree

3 files changed

+3217
-2352
lines changed

3 files changed

+3217
-2352
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "redisvl"
3-
version = "0.9.1"
3+
version = "0.10.0"
44
description = "Python client library and CLI for using Redis as a vector database"
55
authors = [{ name = "Redis Inc.", email = "[email protected]" }]
66
requires-python = ">=3.9.2,<3.14"

redisvl/redis/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ def get_redis_connection(
365365
variable is not set.
366366
"""
367367
url = redis_url or get_address_from_env()
368+
client: SyncRedisClient
368369
if url.startswith("redis+sentinel"):
369370
client = RedisConnectionFactory._redis_sentinel_client(url, Redis, **kwargs)
370371
elif is_cluster_url(url, **kwargs):
@@ -407,6 +408,7 @@ async def _get_aredis_connection(
407408
"""
408409
url = url or get_address_from_env()
409410

411+
client: AsyncRedisClient
410412
if url.startswith("redis+sentinel"):
411413
client = RedisConnectionFactory._redis_sentinel_client(
412414
url, AsyncRedis, **kwargs

0 commit comments

Comments
 (0)