jorgenschaefer / elpy

Emacs Python Development Environment
GNU General Public License v3.0
1.89k stars 259 forks source link

Add signature and type to completion display #473

Open jorgenschaefer opened 9 years ago

jorgenschaefer commented 9 years ago

PyCharm displays some extra information in the completion popup. Would be nice if Elpy did so, too:

PyCharm

So something like [m|f|v] <name>(args, ...) Class

PyCharm seems to display the return value. Pity we do not have that in Jedi or Rope.

birkenfeld commented 9 years ago

Hm, shouldn't Jedi be able to give us the return value (when it can know it)? It needs that for completion anyway.

(BTW, "f" is confusing. I guess it means "field", but that's not a term used in Python. "a" for attribute would be better.)

jorgenschaefer commented 9 years ago

I was thinking of "function" as opposed to "method" (that's how PyCharm uses it), but it was just an example. Would need to check what Jedi has easily available.

And no, I have not seen an interface to get the return value from Jedi. Happy to be told I'm wrong, though!