davidhalter / jedi

Awesome autocompletion, static analysis and refactoring library for python
http://jedi.readthedocs.io
Other
5.78k stars 508 forks source link

[Feature Request]: infer the return type of functions #2000

Closed ghsanti closed 3 months ago

ghsanti commented 3 months ago

Hi, I've been searching about this but found no answer so far, so I am requesting as feature.

When one hovers over a function in VSCode, the Return Type (->type) is not inferred (even for simple functions.) or at least it is not indicated in the help-box.

Would it be possible to have this?

ghsanti commented 3 months ago

My bad, I guess Jedi is not a type checker, if I understand the docs correctly. I'll be using it along with mypy https://mypy.readthedocs.io/en/latest/getting_started.html

Actually ended up with Jedi + Pyright.