<div dir="ltr"><div>It looks like PyCharm ignore PyQt5-stubs when import from qtpy but it works when import from PyQt5.. <br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Grzegorz Bokota<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 28 kwi 2020 o 20:44 Florian Bruhin <<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Apr 28, 2020 at 08:40:28PM +0200, Grzegorz Bokota wrote:<br>
> > > There are any plans to add Python stubs files in PyQt5 or PyQt6?<br>
> <br>
> > PyQt5 already comes with stub-files, though they are mostly optimized for<br>
> > IDE completion rather than type checking.<br>
> <br>
> > There are community-maintained stubs for mypy here:<br>
> > <a href="https://github.com/stlehmann/PyQt5-stubs" rel="noreferrer" target="_blank">https://github.com/stlehmann/PyQt5-stubs</a><br>
> <br>
> But This is not working well if the project uses some wrapper like qtpy.<br>
> And it works well if stubs files are in a package (like PySide2).<br>
<br>
I don't follow. How would stub files being distributed inside a package vs.<br>
separately make a difference with regards to wrappers?<br>
<br>
Florian<br>
<br>
-- <br>
<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a> (Mail/XMPP) | <a href="https://www.qutebrowser.org" rel="noreferrer" target="_blank">https://www.qutebrowser.org</a> <br>
       <a href="https://bruhin.software/" rel="noreferrer" target="_blank">https://bruhin.software/</a> | <a href="https://github.com/sponsors/The-Compiler/" rel="noreferrer" target="_blank">https://github.com/sponsors/The-Compiler/</a><br>
       GPG: 916E B0C8 FD55 A072 | <a href="https://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">https://the-compiler.org/pubkey.asc</a><br>
             I love long mails! | <a href="https://email.is-not-s.ms/" rel="noreferrer" target="_blank">https://email.is-not-s.ms/</a><br>
</blockquote></div>