mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 17:58:35 +08:00
Show in a test that something doesn't work properly around async analysis
This commit is contained in:
@@ -44,6 +44,17 @@ await A.b()
|
|||||||
#! 11 ['param d=2']
|
#! 11 ['param d=2']
|
||||||
await A.b(d=3)
|
await A.b(d=3)
|
||||||
|
|
||||||
|
class Awaitable:
|
||||||
|
def __await__(self):
|
||||||
|
yield None
|
||||||
|
return ''
|
||||||
|
|
||||||
|
async def awaitable_test():
|
||||||
|
foo = await Awaitable()
|
||||||
|
# TODO doesn't work yet.
|
||||||
|
##? int()
|
||||||
|
foo
|
||||||
|
|
||||||
# python >= 3.6
|
# python >= 3.6
|
||||||
|
|
||||||
async def asgen():
|
async def asgen():
|
||||||
|
|||||||
Reference in New Issue
Block a user