.api/.pyi files and scoped enums
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)
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...
Size: 833 bytes
Desc: not available
More information about the PyQt