<p dir="ltr">I use annotations a lot on my projects and could test too if that helps</p>
<div class="gmail_quote">On Feb 5, 2016 12:06 PM, "Phil Thompson" <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 30 Jan 2016, at 6:39 pm, Damon Lynch <<a href="mailto:damonlynch@gmail.com">damonlynch@gmail.com</a>> wrote:<br>
><br>
><br>
> On Sat, Jan 30, 2016 at 10:59 PM, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br>
><br>
> 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?<br>
><br>
><br>
> Hi Phil,<br>
><br>
> That's wonderful news! Personally I find the type annotations to be very useful indeed.<br>
><br>
> For your testing, PyCharm might be just the ticket: <a href="http://blog.jetbrains.com/pycharm/2015/11/python-3-5-type-hinting-in-pycharm-5/#stub-files" rel="noreferrer" target="_blank">http://blog.jetbrains.com/pycharm/2015/11/python-3-5-type-hinting-in-pycharm-5/#stub-files</a><br>
><br>
> 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:<br>
><br>
> self.devices = {}  # type: Dict[int, Device]<br>
><br>
> but not this, where multiple types are specified:<br>
><br>
> device, storage_space = index.data(Roles.storage)  # type: Device, StorageSpace<br>
<br>
Would you be able to test it if I sent you some stub files?<br>
<br>
Phil<br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></blockquote></div>