typing: Slots can return non-None

Phil Thompson phil at riverbankcomputing.com
Sun Jul 9 12:27:43 BST 2023


On 09/07/2023 00:06, Florian Bruhin wrote:
> Hey,
> 
>> On 29/06/2023 22:53, Florian Bruhin wrote:
>> > In QtCore.pyi, PyQt6 claims that:
>> >
>> >     PYQT_SLOT = typing.Union[typing.Callable[..., None], pyqtBoundSignal]
>> >
>> > which is the defined as the argument to pyqtBoundSignal.connect().
>> >
>> > [...]
>> 
>> Fixed.
> 
> Seems like it's still declared like that in the latest snapshot
> (PyQt6-6.5.2.dev2307051759) - unless that was a change made shortlya
> after it was released?

It was fixed for everything but QtCore - now fixed properly.

Thanks,
Phil


More information about the PyQt mailing list