Open Erotemic opened 11 months ago
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?
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.