async_retrying icon indicating copy to clipboard operation
async_retrying copied to clipboard

python== 3.10 has loop error

Open ppwang06 opened this issue 2 years ago • 0 comments

python==3.10 async_retrying==0.2.2

error: TypeError: sleep() got an unexpected keyword argument 'loop' This may be caused by the removal of loop parameter in later versions of python. Can you optimize it?

Source place:

@asyncio.coroutine
def callback(attempt, exc, args, kwargs, delay=None, *, loop):
  if delay is None:
      delay = callback.delay
yield from asyncio.sleep(attempt * delay, loop=loop)
return retry

ppwang06 avatar Mar 10 '23 10:03 ppwang06