Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PySide6 typing stubs available
Qt 6.11 is out! See what's new in the release blog

PySide6 typing stubs available

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Bluebird75B Offline
    Bluebird75B Offline
    Bluebird75
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    2

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved