Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mypy compatibility issues with PySide6 #5

Open
tjkuson opened this issue Nov 23, 2022 · 1 comment
Open

mypy compatibility issues with PySide6 #5

tjkuson opened this issue Nov 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@tjkuson
Copy link
Member

tjkuson commented Nov 23, 2022

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 tjkuson added the bug Something isn't working label Nov 23, 2022
@tjkuson
Copy link
Member Author

tjkuson commented Feb 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant