pappasam / jedi-language-server

A Python language server exclusively for Jedi. If Jedi supports it well, this language server should too.
MIT License
572 stars 44 forks source link

It may get wrong signatures from `pyi` file #257

Open ChenZhongPu opened 1 year ago

ChenZhongPu commented 1 year ago

It seems that jedi-language-server would read a package's __init__.pyi to support its auto-completion. But sometimes, it may wrongly regards functions as variables.

For example, numpy.log is defined as log: _UFunc_Nin1_Nout1[L['log'], L[10], None], so jedi-language-server regards it as a variable. But in fact, it is a function.

BTW, VSCode's pylance is able to give proper hint in this case. Can jedi also do so?