You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This repository holds the stubs of the PyQt5 framework. The stub files releasedwithin the PyQt5 packages have been modified to allow using them for type-checking via mypy.Improvements over the default stubs include:
Signals are properly typed as signals and not as methods
QFlags derived classes correctly support all combination operations
Many methods accepting an optional None have been annotated so
and more...
This repository can always be improved and the authors willappreciate any PRs or Issues that help making this stub-repository more reliable.
Installation
Simply install PyQt5-stubs with pip:
$ pip install PyQt5-stubs
Or clone the latest version from Github and install it via Python setuptools:
The modules supported by PyQt5-stubs include modules from the PyQt5 package as well as modules from the otherpackages released by Riverbank Computing (PyQt3D, PyQtCharts, ...). Here is the full listof packages and modules: