mwerezak / DearPyGui-Obj

An object-oriented wrapper around DearPyGui
MIT License
45 stars 3 forks source link

Generate __init__ keyword annotations for config properties #19

Closed mwerezak closed 3 years ago

mwerezak commented 3 years ago

I think I can use PEP 526 __annotations__ to do this.

mwerezak commented 3 years ago

Turns out dynamically generating an __init__ with a certain signature a la dataclasses is not simple!

This isn't really worth the effort, since people can just look at the config properties to know what keywords are available.