-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add missing redis modules and classes #7676
Conversation
Most types were taken from the partly-annotated upstream code base. I didn't double check them, just cleaned them up. |
I tried to track down the pytype errors, but without success. Cc @rchen152 |
I'll look into it today. |
I've got a fix for the pytype issue out for review. Hopefully I'll be able to do a release tomorrow. |
Fixes pytype test failures seen in python/typeshed#7676 by doing more extensive re-resolving of external types upon encountering circular imports. This also lets us remove a previous hack that we put in to partially work around this problem. PiperOrigin-RevId: 444427690
Fixes pytype test failures seen in python/typeshed#7676 by doing more extensive re-resolving of external types upon encountering circular imports. This also lets us remove a previous hack that we put in to partially work around this problem. PiperOrigin-RevId: 444427690
Just pushed out pytype-2022.4.26, which should fix this issue. |
NoReturn should be used only when the function never returns. In this case, the awaitable returns None if releasing the lock succeeds, so `Awaitable[None]` is right. Noticed this while reviewing python/typeshed#7676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting all this together! I didn't look at everything closely but noticed one issue.
Co-authored-by: Jelle Zijlstra <[email protected]>
NoReturn should be used only when the function never returns. In this case, the awaitable returns None if releasing the lock succeeds, so `Awaitable[None]` is right. Noticed this while reviewing python/typeshed#7676
@srittau, from redis.asyncio import RedisCluster as AsyncRedisCluster |
This adds asyncio support
Closes #7597