Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation refers to asyncio.run_until_complete #188

Open
bac opened this issue Jan 8, 2025 · 0 comments · May be fixed by #189
Open

Documentation refers to asyncio.run_until_complete #188

bac opened this issue Jan 8, 2025 · 0 comments · May be fixed by #189

Comments

@bac
Copy link

bac commented Jan 8, 2025

Please read the bug submission guidelines before submitting a bug.

Not following guidelines may result in your bug being ignored and/or closed.

Description of Bug
docs/client.rst has the following example code:

  if __name__ == '__main__':
      import asyncio
      asyncio.run_until_complete(main())

Code to Reproduce
N/A as it is a documentation bug.

Expected Behavior
The correct code example should be:

if __name__ == "__main__":
    import asyncio
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

Actual Behavior
N/A

Error/Exception Log, If Applicable
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant