[Eric] Type hints
Vasileios Anagnostopoulos
fithis2001 at gmail.com
Sun Nov 10 07:56:08 GMT 2019
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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/eric/attachments/20191110/35b0729a/attachment.html>
More information about the Eric
mailing list