summaryrefslogtreecommitdiff
path: root/redis/asyncio/client.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2022-05-02 03:08:14 -0600
committerGitHub <noreply@github.com>2022-05-02 12:08:14 +0300
commiteca7075e33c48dc387bc8f3247e21a6997dd081d (patch)
treeea5e520da9e1423d946ce2b77ed5f3f3d3cee88a /redis/asyncio/client.py
parent09a52dba48221353eafa8188d73ab97e8f4ccc49 (diff)
downloadredis-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