UoM-NXCT / TAMS

Makes storing and accessing tomographic data easy and quick.
https://tams-nxct.readthedocs.io/
MIT License
1 stars 1 forks source link

mypy compatibility issues with PySide6 #5

Open tjkuson opened 2 years ago

tjkuson commented 2 years ago

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.

self.btn = QPushButton("Click Me")
self.btn.clicked.connect(self.btn_clicked)
error: "QPushButton" has no attribute "clicked"

Context

This is a known issue with PySide6.

https://bugreports.qt.io/browse/PYSIDE-1675 https://bugreports.qt.io/browse/PYSIDE-1603

tjkuson commented 1 year ago

Should be fixed in PySide version 6.4.3, according to issue assignee.