Florian Bruhin
2018-11-26 20:44:56 UTC
Hi,
(last one... for today :D)
Where Qt has signals, PyQt's type annotations seem to say it's a normal
function - like with QTimer.timeout:
class QTimer(QObject):
[...]
def timeout(self) -> None: ...
Shouldn't signals rather be defined like "timeout: QtCore.pyqtSignal",
which presumably also would make PyCharm suggest their
.connect/.disconnect method properly?
Florian
(last one... for today :D)
Where Qt has signals, PyQt's type annotations seem to say it's a normal
function - like with QTimer.timeout:
class QTimer(QObject):
[...]
def timeout(self) -> None: ...
Shouldn't signals rather be defined like "timeout: QtCore.pyqtSignal",
which presumably also would make PyCharm suggest their
.connect/.disconnect method properly?
Florian
--
https://www.qutebrowser.org | ***@the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
https://www.qutebrowser.org | ***@the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/