Automated replacement for unscoped -> scoped enums

Florian Bruhin me at
Tue Dec 1 20:22:34 GMT 2020


I took a quick look at how to automate the replacement of unscoped to
scoped enums:

I ended up parsing the .pyi files (making some assumptions about how
they're generated) and then writing a script which replaces all enum
accesses based on that.

If anyone else needs it, you can find it here:


me at (Mail/XMPP) | |
       GPG: 916E B0C8 FD55 A072 |
             I love long mails! |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <>

More information about the PyQt mailing list