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
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: