.api/.pyi files and scoped enums

Florian Bruhin me at the-compiler.org
Tue Dec 1 17:51:10 GMT 2020


After trying to find out if I can automatically rewrite enums for scoped
access, I looked at the .api output (since the XML export doesn't seem
to exist anymore?).

However, I noticed that the generated files still contain the unscoped
names, e.g. "QtCore.Qt.NoButton?10" rather than

Something similar applies to the .pyi files, which contain:

    class MouseButton(int): ...
    NoButton = ... # type: 'Qt.MouseButton'

(note that the members are not part of the class scope, they are
directly in the enclosing "Qt" class)

That's with:


Is this intended?


me at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20201201/b48b8f36/attachment.sig>

More information about the PyQt mailing list