Skip to content

Python: Fix typing - #1203

Merged
barshaul merged 1 commit into
valkey-io:mainfrom
barshaul:fix_py
Apr 2, 2024
Merged

barshaul merged 1 commit into
valkey-io:mainfrom
barshaul:fix_py

Conversation

@barshaul

@barshaul barshaul commented Apr 1, 2024

Copy link
Copy Markdown
Collaborator

Resolves error on python3.8:

Traceback (most recent call last):
  File “client_example.py”, line 6, in <module>
    from glide import (
  File “/Users/daganh/Library/Python/3.8/lib/python/site-packages/glide/__init__.py”, line 11, in <module>
    from glide.async_commands.redis_modules import json
  File “/Users/daganh/Library/Python/3.8/lib/python/site-packages/glide/async_commands/redis_modules/json.py”, line 23, in <module>
    from glide.redis_client import TRedisClient
  File “/Users/daganh/Library/Python/3.8/lib/python/site-packages/glide/redis_client.py”, line 38, in <module>
    ) -> type[RequestError]:
TypeError: ‘type’ object is not subscriptable

@barshaul
barshaul requested a review from a team as a code owner April 1, 2024 08:59
@barshaul
barshaul merged commit 961aab5 into valkey-io:main Apr 2, 2024
@barshaul
barshaul deleted the fix_py branch April 2, 2024 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python 🐍 Python wrapper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants