Conversation
https://github.com/python-qt-tools/PyQt5-stubs/actions/runs/3485949394/jobs/5831945350#step:7:111 > `error: PyQt5.QtCore.pyqtSignal.__get__ is inconsistent, runtime argument "owner" has a default value but stub argument does not`
The-Compiler
left a comment
There was a problem hiding this comment.
Does it really need to be conditional? Looking at the commit history, it looks like the Optional is what made it work. From reading the Python 3.8 reference and even the original 2001 PEP (__get__(): a function callable with one or two arguments), it looks like this would be the correct annotation even for older Python versions.
|
Adding Adding just And yeah, this does feel odd that the Python version is changing the same compiled version of PyQt's presence or lack of a parameter default... We are on mypy 0.930, so there's that. And 0.991 segfaults on the stubtest run so... |
|
We're also on PyQt 5.15.6 not 5.15.7. |
The-Compiler
left a comment
There was a problem hiding this comment.
Weird! But ok, let's do this, to make stubtest happy.
https://github.com/python-qt-tools/PyQt5-stubs/actions/runs/3485949394/jobs/5831945350#step:7:111