pep-0492: It's a TypeError to pass non-awaitable to 'await'
This commit is contained in:
parent
2889bc2597
commit
3aee121333
|
@ -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"
|
||||
----------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue