some work on type hint stubs
Phil Thompson
phil at riverbankcomputing.com
Sat Oct 10 10:25:56 BST 2020
On 09/10/2020 23:54, Kyle Altendorf wrote:
> On 2020-10-09 17:14, Phil Thompson wrote:
>> 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.
>
> Since you mention SIP v6, would you expect to make corrections for
> future PyQt5 releases? Or just PyQt6? I'll admit I haven't been
> closely following plans.
These sort of fixes will benefit PyQt5 and PyQt6.
Phil
More information about the PyQt
mailing list