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

support python 3.11 #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

reticivis-net
Copy link

closes #3

in python 3.11, asyncio.wait() cannot be passed coroutines, only tasks, which breaks this code

https://github.com/Gelbpunkt/aioscheduler/blob/8bb46be71894c022ce4862212c39636c5789a181/aioscheduler/scheduler.py#L84C8-L92

My fix just wraps the coros in tasks and it works just fine

ignore the changes in timed_scheduler_cancel.py, I was making sure the fix worked

@Gelbpunkt
Copy link
Owner

ignore the changes in timed_scheduler_cancel.py, I was making sure the fix worked

Please revert them then, there's no need to touch the file here.

@reticivis-net
Copy link
Author

ignore the changes in timed_scheduler_cancel.py, I was making sure the fix worked

Please revert them then, there's no need to touch the file here.

Reverted in this pull and #5

@shahriyardx
Copy link

will this pr ever get merged or any plan to add 3.11 support ?

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 this pull request may close these issues.

Both examples does not work in Python3.11, But works in Python3.10
3 participants