forked from python/typeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Roy Williams
committed
Dec 1, 2015
1 parent
30af935
commit 86893da
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Awaitable
should be parameterized with three generic types and return aGenerator
:Otherwise it won't be possible to describe the return type of an
async def
function that returns a value afterawait
for a coroutine object finishes, e. g.:(There is a proposal python/typing#119 to allow users to specify only the type of the return statement for
async def
functions so this complicated type would be used only inside a static type checker.)