Registry / type-stubs / PyQt5-stubs

PyQt5-stubs

JSON →
library5.15.6.0pypypiunverified

PEP 561 compliant stub files (type hints) for the PyQt5 framework. Provides type information for static type checkers like mypy and Pyright. Current version 5.15.6.0, compatible with PyQt5 5.15.x. Released as needed for PyQt5 updates.

pip install PyQt5-stubs
INSTALL
IMPORT
SIG · PYQT5-STUBS
P
PyQt5-stubs
type-stubspythonv5.15.6.0
Install
1.6s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.15.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 22MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

QWidget
from PyQt5.QtWidgets import QWidget
from PyQt5-stubs.QtWidgets import QWidget

Display a simple PyQt5 button; stubs enable type checking.

import sys from PyQt5.QtWidgets import QApplication, QPushButton app = QApplication(sys.argv) button = QPushButton('Click me') button.show() sys.exit(app.exec_())
Debug
Known issues
deprecatedPyQt5-stubs is no longer actively maintained; consider migrating to PyQt6 with PyQt6-stubs.
fix
Switch to PyQt6 and PyQt6-stubs for active support.
affects: >=5.15.6.0
gotchaStubs may not cover newer PyQt5 submodules (e.g., QtWebEngine, Qt3D) as thoroughly.
fix
Check stub coverage; report missing stubs upstream.
affects: >=5.14.2.2
breakingIn version 5.15.2.0, strict mypy mode was enabled; existing code with untyped signals/slots may cause new errors.
fix
Add type annotations to signals/slots or use `# type: ignore` locally.
affects: 5.15.2.0+
Upgrade
Version history
5.15.6.0latest on PyPI · released Apr 23, 2022
Audit
Dependencies
PyQt5requiredRuntime dependency; stubs are for PyQt5
Agent activity
52 hits · last 30 days
node
44
Perplexity
1
OpenAI (training)
1
Resources
PyQt5-stubs — pip install PyQt5-stubs · libregistry