[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] Can't get mypy to see PyQt5 stubs
From: David Cortesi <davecortesi () gmail ! com>
Date: 2016-11-26 23:56:34
Message-ID: CALyzANuMSCYtV_3xg0wuw1uRQL0PJbGFKvY_-zu7uBJPNKynUA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
So I installed PyQt5.7 from source, producing plentiful Q*.pyi "stub" files.
I have placed copies of these in the default locations, which on my MacOS
system is
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/PyQt5
I have also copied them into the mypy distribution, at
/Library/Frameworks/Python.framework/Versions/3.5/lib/mypy/typeshed/third_party/3/PyQt5
And also in a separate folder named "stubs" the path to which is stored in
the environment variable MYPYPATH.
Despite this redundant redundancy, when I apply mypy to a module that
imports PyQt5.QtCore it says,
display.py:96: error: No library stub file for module 'PyQt5.QtCore'
display.py:96: note: (Stub files are from
https://github.com/python/typeshed)
Any suggestions are most welcome...
[Attachment #5 (text/html)]
<div dir="ltr"><div><div><div><div><div>So I installed PyQt5.7 from source, producing \
plentiful Q*.pyi "stub" files.<br><br></div>I have placed copies of these \
in the default locations, which on my MacOS system \
is<br><br>/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/PyQt5<br><br></div>I \
have also copied them into the mypy distribution, \
at<br><br>/Library/Frameworks/Python.framework/Versions/3.5/lib/mypy/typeshed/third_party/3/PyQt5<br><br></div>And \
also in a separate folder named "stubs" the path to which is stored in the \
environment variable MYPYPATH.<br><br></div>Despite this redundant redundancy, when I \
apply mypy to a module that imports PyQt5.QtCore it says,<br><br> \
display.py:96: error: No library stub file for module 'PyQt5.QtCore'<br> \
display.py:96: note: (Stub files are from <a \
href="https://github.com/python/typeshed">https://github.com/python/typeshed</a>)<br><br></div>Any \
suggestions are most welcome...<br><br></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic