python-trio / trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio
Other
189 stars 38 forks source link

TypeError: run_coroutine() got an unexpected keyword argument 'scope' #15

Closed miracle2k closed 6 years ago

miracle2k commented 6 years ago
async def run_some_asyncio():
    await asyncio.sleep(1)

async def async_main(*args):
    async with trio_asyncio.open_loop() as loop:
        await trio_asyncio.run_coroutine(run_some_asyncio())

trio.run(async_main)
  File "/Users/michael/.local/share/virtualenvs/ySqLnqEA/lib/python3.6/site-packages/trio_asyncio/loop.py", line 190, in run_coroutine
    return await loop.run_coroutine(fut, scope=scope)
TypeError: run_coroutine() got an unexpected keyword argument 'scope'