Fix some more await things

This commit is contained in:
Dave Halter
2018-02-28 23:30:20 +01:00
parent dfa383c744
commit 3820111d1e
4 changed files with 34 additions and 19 deletions

View File

@@ -24,8 +24,8 @@ async def y():
argh = await x()
#? int()
argh
#? int()
x().__await__()
#? ['__next__']
x().__await__().__next
return 2
async def x2():
@@ -51,8 +51,7 @@ class Awaitable:
async def awaitable_test():
foo = await Awaitable()
# TODO doesn't work yet.
##? int()
#? str()
foo
# python >= 3.6