python-trio / trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

miracle2k opened this issue · comments

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'