[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Automated replacement for unscoped -> scoped enums
From:       Florian Bruhin <me () the-compiler ! org>
Date:       2020-12-01 20:22:34
Message-ID: 20201201202234.356vsuh54iqcdww2 () aragog ! localdomain
[Download RAW message or body]


Hey,

I took a quick look at how to automate the replacement of unscoped to
scoped enums:
https://www.riverbankcomputing.com/static/Docs/PyQt5/gotchas.html#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:
https://github.com/qutebrowser/qutebrowser/issues/5904#issuecomment-736792450

Florian

-- 
me@the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
             I love long mails! | https://email.is-not-s.ms/

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic