pep-0492: It's a TypeError to pass non-awaitable to 'await'

This commit is contained in:
Yury Selivanov 2015-04-23 16:44:59 -04:00
parent 2889bc2597
commit 3aee121333
1 changed files with 3 additions and 0 deletions

View File

@ -157,6 +157,9 @@ can be one of:
It is a ``SyntaxError`` to use ``await`` outside of a coroutine.
It is a ``TypeError`` to pass anything other than an *awaitable* object
to an ``await`` expression.
Asynchronous Context Managers and "async with"
----------------------------------------------