Plans for PyQt6?

Grzegorz Bokota g.bokota at mimuw.edu.pl
Tue Apr 28 19:40:28 BST 2020


> > There are any plans to add Python stubs files in PyQt5 or PyQt6?

> PyQt5 already comes with stub-files, though they are mostly optimized for
IDE
> completion rather than type checking.

> There are community-maintained stubs for mypy here:
> https://github.com/stlehmann/PyQt5-stubs

But This is not working well if the project uses some wrapper like qtpy.
And it works well if stubs files are in a package (like PySide2).


Grzegorz Bokota


wt., 28 kwi 2020 o 20:34 Florian Bruhin <me at the-compiler.org> napisaƂ(a):

> On Tue, Apr 28, 2020 at 08:28:32PM +0200, Grzegorz Bokota wrote:
> > There are any plans to add Python stubs files in PyQt5 or PyQt6?
>
> PyQt5 already comes with stub-files, though they are mostly optimized for
> IDE
> completion rather than type checking.
>
> There are community-maintained stubs for mypy here:
> https://github.com/stlehmann/PyQt5-stubs
>
> Right now, most of the conversions needed are manual, though there are some
> ideas on how to further automate stuff floating around.
>
> Phil: You mentioned at some point that the generator part of SIP is being
> rewritten in Python as well, correct? I suppose this wouldn't be a good
> time
> for contributions to SIP to improve stubs upstream then? Is there any rough
> timeline on a Python-based SIP generator?
>
> Florian
>
> --
> me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org
>        https://bruhin.software/ |
> https://github.com/sponsors/The-Compiler/
>        GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>              I love long mails! | https://email.is-not-s.ms/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200428/fb956fba/attachment.htm>


More information about the PyQt mailing list