[PySide] PySide6 typing stubs available

Cristián Maureira-Fredes Cristian.Maureira-Fredes at qt.io
Mon Jul 31 09:55:52 CEST 2023

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.


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

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