.api/.pyi files and scoped enums

Phil Thompson phil at riverbankcomputing.com
Tue Dec 1 17:57:12 GMT 2020


On 01/12/2020 17:51, Florian Bruhin wrote:
> 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?

No, just haven't got round to everything yet.

Phil


More information about the PyQt mailing list