Skip to content

python== 3.10 has loop error #21

@ppwang06

Description

@ppwang06

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions