diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2022-05-02 03:08:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 12:08:14 +0300 |
commit | eca7075e33c48dc387bc8f3247e21a6997dd081d (patch) | |
tree | ea5e520da9e1423d946ce2b77ed5f3f3d3cee88a /redis/asyncio/client.py | |
parent | 09a52dba48221353eafa8188d73ab97e8f4ccc49 (diff) | |
download | redis-py-eca7075e33c48dc387bc8f3247e21a6997dd081d.tar.gz |
Fix incorrect return annotation in asyncio.lock (#2155)
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
Diffstat (limited to 'redis/asyncio/client.py')
0 files changed, 0 insertions, 0 deletions