[PySide] PySide6 typing stubs available

Cristián Maureira-Fredes Cristian.Maureira-Fredes at qt.io
Mon Aug 7 10:44:35 CEST 2023


Hey,

If you could provide that list
on a bug report it would be amazing,
otherwise messages here or in any chat platform
might be lost.

Cheers

On 8/6/23 17:44, Philippe Fremy wrote:
> Hi Cristian,
> 
> The previous email was for pyside2 . I did a few bug reports but the 
> feedback was that pyside2 is frozen, there will be no fixes.
> 
> For pyside6, I'll do some bug report eventually. For now, I want first 
> to stabilize the project and get a big more traction into python static 
> typing.
> 
> My jira login is bluebird75 in case you need to remember.
> 
> If you want in the meantime, I can list the general class of typing 
> errors made by Qt.
> 
> Regards,
> 
> Philippe
> 
> Le 31/07/2023 à 09:55, Cristián Maureira-Fredes via PySide a écrit :
>> Hello Philippe,
>>
>> I remember your previous email about the same project,
>> maybe I don't know your JIRA username, but
>> have you report all the incomplete or incorrect stubs
>> you mention?
>>
>> As stated before, writing down the stubs it's not a problem,
>> but the challenge is to generate them automatically.
>>
>> I personally don't believe maintaining stubs by hand
>> is something that scale over time, but I understand if this
>> is your personal project, and something you like.
>>
>> Please report the issues if you haven't,
>> otherwise the problem you are trying to fix will never
>> be solved.
>>
>> Cheers
>>
>>
>> On 7/30/23 00:18, Philippe Fremy wrote:
>>> Hi,
>>>
>>> Static typing python program is a growing trend with many benefits : 
>>> better bug detection and better reliability for example.
>>>
>>> Unfortunately, the stubs provided by default the pyside6 package are 
>>> both incorrect and incomplete. But there is hope...
>>>
>>> I have just released the pyside6-stubs package which provides 
>>> noticeable improvements over the default stubs. For example :
>>>
>>>   * add all missing signals to the stubs (many were missing)
>>>   * fix QFileDialog.getOpen*() methods to accept None as parent argument
>>>   * support all QSize and QSizeF operations
>>>   * fix QTreeWidgetItem comparison with <
>>>   * fix qVersion() returns string, not bytes
>>>   * fix qDebug(), qWarning(), qCritical(), qFatal(), SIGNAL(), SLOT() to
>>>     accept string, not bytes
>>>
>>> And many more...
>>>
>>> To benefit from this, install the pip package : 
>>> https://pypi.org/project/PySide6-stubs/
>>>
>>> To help improve the stubs or report any bug, it's here : 
>>> https://github.com/python-qt-tools/PySide6-stubs
>>>
>>> Regards,
>>>
>>> Philippe
>>>
>>>
>>> _______________________________________________
>>> PySide mailing list
>>> PySide at qt-project.org
>>> https://lists.qt-project.org/listinfo/pyside
>>
> 
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> https://lists.qt-project.org/listinfo/pyside

-- 
Dr. Cristián Maureira-Fredes
Senior R&D Manager

The Qt Company GmbH
Erich-Thilo-Str. 10
D-12489 Berlin

Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B


More information about the PySide mailing list