-
Notifications
You must be signed in to change notification settings - Fork 31
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
QCoreApplication aboutToQuit not defined as signal #4
Comments
Thanks for the feedback. The upstream PyQt5 stubs type-annotate signals as functions. They need to be changed to the type pyqtSignal. I will change this right away. If you discover any more such issues feel free to make a PR or report. |
Fixed with 9e7cbb9 |
Perfect, thanks! |
Wait, am I missing something here? This provided a fix for |
You are right. There went something wrong, here. I'll have a look at it. |
That was quick 😃 thanks. |
Similar to issue python-qt-tools#4 the signals in this module were defined as functions by the upstream PyQt5 stubs. This commit fixes this by re-defining them as signals. In addition the signals in QDialog were updated as it is used as parent in the print dialog classes.
First of all thanks a bunch for your work on this!
When connecting to the
aboutToQuit
signal inQCoreApplication
mypy complains with:I suspect this is because it is simply defined as a function in the stub, not as a signal. Is there any reason for this or could this be changed?
The text was updated successfully, but these errors were encountered: