riskable / keycap_playground

The Keycap Playground is a parametric OpenSCAD keycap generator made for generating keycaps of all shapes and sizes (and profiles)
371 stars 45 forks source link

Handle deprecated coroutine #15

Open Erotemic opened 11 months ago

Erotemic commented 11 months ago

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 commented 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?