some work on type hint stubs

Phil Thompson phil at riverbankcomputing.com
Fri Oct 9 22:14:26 BST 2020


On 09/10/2020 20:04, Kyle Altendorf wrote:
> Hi Phil,
> 
> There's been some work over in PyQt5-stubs [0] recently.  It is now
> passing mypy --strict (with 180 reviewed ignores) and we are working
> through the complaints from stubtest (mostly enumeration __new__
> signatures are left).  Not that automated generic checks catch
> everything, but they are pieces of the puzzle.  Perhaps this work
> could be useful as a reference for some changes to the official stub
> generation.  If you would be interested in any help enhancing the
> official stubs, let us know how.
> 
> Cheers,
> -kyle
> 
> 
> [0] https://github.com/stlehmann/PyQt5-stubs

I wasn't aware of this. It's on my list for SIP v6 to review the support 
for stubs as it hasn't much changed much since it was first implemented.

I'm happy to take bug reports (and patches!) to fix any issues - the 
automatically generated stubs should be correct without any need to 
maintain separate versions.

Phil


More information about the PyQt mailing list