-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Some functions have wrong return types #3091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
any updates on this issue? |
FYI Install also there is a note in the description
So it seems that the redis team already know that the embedded type hints are incomplete :D |
I've noticed that since upgrading py-redis from v4 to v5, it now enforces that we pass a string into a hash rather than bytes or anything else. However |
Thanks for wanting to report an issue you've found in redis-py. Please delete this text and fill in the template below.
It is of course not always possible to reduce your code to a small test case, but it's highly appreciated to have as much data as possible. Thank you!
Version: What redis-py and what redis version is the issue happening on?
redis-py: 5.0.1
redis: 7.2.3
Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)
Python 3.11 on Ubuntu
Description:
Some functions have wrong return types.
like hget in here, it was typed as
Union[Awaitable[Optional[str]], Optional[str]]
but I don't think it is
Awaitable
as it isn't a async function, and it returnbytes
actually, notstr
.Same issue may found in other functions.
The text was updated successfully, but these errors were encountered: