[PyQt] Help with PEP 484 Type Hint Stub Files

oliver oliver.schoenborn at gmail.com
Sat Feb 6 00:22:42 GMT 2016


I use annotations a lot on my projects and could test too if that helps
On Feb 5, 2016 12:06 PM, "Phil Thompson" <phil at riverbankcomputing.com>
wrote:

> On 30 Jan 2016, at 6:39 pm, Damon Lynch <damonlynch at gmail.com> wrote:
> >
> >
> > On Sat, Jan 30, 2016 at 10:59 PM, Phil Thompson <
> phil at riverbankcomputing.com> wrote:
> >
> > However, I'm having trouble testing all this. Can anybody recommend a
> tool that has reasonable support for PEP 484 stub files? PyCharm? pytype?
> mypy?
> >
> >
> > Hi Phil,
> >
> > That's wonderful news! Personally I find the type annotations to be very
> useful indeed.
> >
> > For your testing, PyCharm might be just the ticket:
> http://blog.jetbrains.com/pycharm/2015/11/python-3-5-type-hinting-in-pycharm-5/#stub-files
> >
> > I've not tested PyCharm with stub files myself, but with respect to
> in-script type annotating, PyCharm is off to a pretty good start. For
> instance it handles this:
> >
> > self.devices = {}  # type: Dict[int, Device]
> >
> > but not this, where multiple types are specified:
> >
> > device, storage_space = index.data(Roles.storage)  # type: Device,
> StorageSpace
>
> Would you be able to test it if I sent you some stub files?
>
> Phil
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160205/edba568d/attachment.html>


More information about the PyQt mailing list