[Eric] Type hints

Vasileios Anagnostopoulos fithis2001 at gmail.com
Wed Nov 13 14:50:20 GMT 2019


Good news, I was able to make it work with only JEDI and actually I had to
change the script to :

>
> # load the image and show it
> from PIL import Image
>
> image : Image.Image =
> Image.open("/Users/vassilisanagnostopoulos/Downloads/grant.jpg")
> print(image.format, image.size, image.mode)
> image.show()
>
> image.resize((100, 100)).show()
> image.rotate(180).show()
>

What is not good is that I get autocompletion suggestions but they have
only a function signature, not function signature and documentation like in
VScode. Is it supported?

Thank you.

On Sun, Nov 10, 2019 at 9:56 AM Vasileios Anagnostopoulos <
fithis2001 at gmail.com> wrote:

> Hi Detlev,
>
> Autocompletion does not seem to work for external libraries (only for what
> I have already)
>
> I have the following example
>
> # load the someImage and show it
>> from PIL import Image
>>
>> someImage : Image =
>> Image.open("/Users/vassilisanagnostopoulos/Downloads/grant.jpg")
>> print(someImage.format,  someImage.size,  someImage.mode)
>> someImage.show()
>>
>> someImage.resize((100, 100)).show()
>> someImage.rotate(180).show()
>>
>
> While (On Macos with python 3.8) I can navigate to the definition of
> "open", Cmd + Left Click, when I write someImage. no suggestions come up. I
> have the same problem with PyCharm / VSCode
>
> Shall I add something else apart from Jedi?
>
> Thank you.
>
> On Tue, Nov 5, 2019 at 8:37 PM Detlev Offenbach <detlev at die-offenbachs.de>
> wrote:
>
>> Hello,
>>
>> eric supports completions and calltips. For this there are various
>> plug-ins
>> available through the eric Plugin Repository dialog.
>>
>> eric Assistant:
>> It needs API files for general support. For support of files of the
>> project it
>> determines these from the source code when a file is saved or the project
>> is
>> opened.
>>
>> Jedi:
>> As the name suggests this is an interface to the Jedi completion machine,
>> which is included in the plugin already. In addition to completions and
>> calltips it provides dynamic source code documentation.
>>
>> Refactoring Rope:
>> This is an interface to the rope refactoring machine. Next to refactoring
>> it
>> provides completions, calltips and code documentation.
>>
>> I hope this is the information that was looked for.
>>
>> Regards,
>> Detlev
>>
>>
>> Am Dienstag, 5. November 2019, 15:33:52 CET schrieb Vasileios
>> Anagnostopoulos:
>> > Hi.
>> >
>> > I use Eric for running snippets but it is more than that.
>> > It is not to me clear how to use type hints (PEP 484), or if they are
>> > supported at all, by Eric. I need it to autocomplete / type-check code I
>> > have written. I am also open to suggestions. I see that PyCharm does
>> > support them but it is too heavy on resources.
>> >
>> > Thank you.
>>
>> --
>> Detlev Offenbach
>> detlev at die-offenbachs.de
>>
>>
>>
>
> --
> Dr. Vasileios Anagnostopoulos (MSc,PhD)
> Researcher/Developer
> ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece
> T (+30) 2107723404 M (+30) 6936935388
> E vanag at mail.ntua.gr<mailto:vanag at mail.ntua.gr> www.ntua.gr<
> http://www.ntua.gr/>
>


-- 
Dr. Vasileios Anagnostopoulos (MSc,PhD)
Researcher/Developer
ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece
T (+30) 2107723404 M (+30) 6936935388
E vanag at mail.ntua.gr<mailto:vanag at mail.ntua.gr> www.ntua.gr<
http://www.ntua.gr/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/eric/attachments/20191113/38c2bffe/attachment.html>


More information about the Eric mailing list