Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information