Skip to content

Conversation

@Erotemic
Copy link

I found there is a way to maintain support for the old coroutine decorator in Python 3.10+. With this patch, the script now runs in my Python 3.11 environment.

@Erotemic
Copy link
Author

It looks like this patch doesn't actually work. Switching the decorated functions to async defs and then changing yield to await seems to do something though. If there is no need to support Python <3.5, then we can just do that. Should I?

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.

1 participant