Open tjkuson opened 1 year ago
mypy should work with PySide6.
PySide6 has incomplete stubs, so mypy wrongly flags certain things as errors.
mypy wrongly flags this as a type error.
self.btn = QPushButton("Click Me") self.btn.clicked.connect(self.btn_clicked)
error: "QPushButton" has no attribute "clicked"
This is a known issue with PySide6.
https://bugreports.qt.io/browse/PYSIDE-1675 https://bugreports.qt.io/browse/PYSIDE-1603
Should be fixed in PySide version 6.4.3, according to issue assignee.
Expected behaviour
mypy should work with PySide6.
Current behaviour
PySide6 has incomplete stubs, so mypy wrongly flags certain things as errors.
Failure information
Steps to reproduce
mypy wrongly flags this as a type error.
Context
This is a known issue with PySide6.
https://bugreports.qt.io/browse/PYSIDE-1675 https://bugreports.qt.io/browse/PYSIDE-1603