-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Context
I'm using langgraph-checkpoint-redis with Python 3.13 for conversation memory in a LangGraph
agent.
Problem
Python 3.13 raises this error when using the Redis checkpointer:
File "redis/commands/helpers.py", line 115, in get_protocol_version
if isinstance(client, redis.Redis) or isinstance(client, redis.asyncio.Redis):
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union
Research Done
- Root cause: Python 3.13 made
isinstance()stricter with typing constructs - Fix exists: redis-py 7.1.0 includes the fix
- Blocker:
langgraph-checkpoint-redisconstrainsredis>=5.2.1,<7.0.0
Request
Update the redis dependency to allow 7.x:
redis = ">=5.2.1" # or ">=7.1.0"Current Workaround
I'm monkey-patching get_protocol_version() to avoid the isinstance check, but would prefer using
the upstream fix.
Environment
- Python 3.13
- langgraph-checkpoint-redis 0.2.1
- redis 6.4.0
I'm open to taking the issue on if there are no takers
Metadata
Metadata
Assignees
Labels
No labels