Re: Plans for PyQt6?

Grzegorz Bokota <[email protected]> Tue, 28 Apr 2020 20:57:08 +0200
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CADUBGeR=gyZSL1BmZZwU_kBBW=HSkBZY3mEUvn4e2jsWdDdQcA@mail.gmail.com>
It looks like PyCharm ignore PyQt5-stubs when import from qtpy but it works
when import from PyQt5..

Grzegorz Bokota


wt., 28 kwi 2020 o 20:44 Florian Bruhin <[email protected]> napisaƂ(a):

> On Tue, Apr 28, 2020 at 08:40:28PM +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
> >
> > 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).
>
> I don't follow. How would stub files being distributed inside a package vs.
> separately make a difference with regards to wrappers?
>
> Florian
>
> --
> [email protected] (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/
>