.api/.pyi files and scoped enums

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


Hey,

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
"QtCore.Qt.MouseButton.NoButton?10".

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:

PyQt-builder==1.6.0
PyQt5==5.15.2
PyQt5-sip==12.8.1
sip==5.5.0

Is this intended?

Florian

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