Skip to content

python== 3.10 has loop error #21

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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