PEP561 stub files for the PyQt5 framework
Project description
Mypy stubs for the PyQt5 framework
This repository holds the stubs of the PyQt5 framework. The stub files released within 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 will appreciate 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:
$ git clone https://github.com/python-qt-tools/PyQt5-stubs
$ python setup.py install
Supported Modules
The modules supported by PyQt5-stubs include modules from the PyQt5 package as well as modules from the other packages released by Riverbank Computing (PyQt3D, PyQtCharts, ...). Here is the full list of packages and modules:
- package PyQt5:
- QtBluetooth
- QtCore
- QtDBus
- QtGui
- QtLocation
- QtMultimedia
- QtNetwork
- QtNfc
- QtOpenGL
- QtPositioning
- QtPrintSupport
- QtQml
- QtQuick
- QtQuickWidgets
- QtRemoteObjects
- QtSensors
- QtSerialPort
- QtSql
- QtSvg
- QtTest
- QtWebChannel
- QtWebSockets
- QtWidgets
- QtX11Extras
- QtXml
- QtXmlPatterns
- sip
- package PyQt3D:
- Qt3DAnimation
- Qt3DCore
- Qt3DExtras
- Qt3DInput
- Qt3DLogic
- Qt3DRender
- package PyQtChart:
- QtChart
- package PyQtDataVisualization:
- QtDataVisualization
- package PyQtNetworkAuth:
- QtNetworkAuth
- package PyQtPurchasing:
- QtPurchasing
- package PyQtWebEngine:
- QtWebEngine
- QtWebEngineCore
- QtWebEngineWidgets
- package PyQtWebkit:
- QtWebKit
- QtWebKitWidgets
Authors
- Stefan Lehmann
- Kyle Altendorf
- Bryce Beagle
- Florian Bruhin
- Philippe Fremy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PyQt5_stubs-5.15.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fb8177c72489a8911f021b7bd7c33f12c87f6dba92dcef3fdcdb5d9400f0f3f |
|
MD5 | c08a5082495664b1e0175e322483b3d8 |
|
BLAKE2b-256 | 33d59b8482ed572be40d51c3fcbb87451e446e56b5e19487cd60340b8ef51eb4 |