-
-
Notifications
You must be signed in to change notification settings - Fork 528
Closed
Description
I ran into a situation while using numpy 1.20.1 with vscode (jedi enabled), where some completions were either missing or had an incorrect type. I checked this with jedi.Script and it appears the problem is also present there as well. Here are some examples (using jedi 0.18.0):
numpy.linspace
>>> numpy.__version__
'1.19.5'
>>> print(jedi.Script("import numpy; numpy.lins").complete())
[<Completion: linspace>]>>> numpy.__version__
'1.20.1'
>>> print(jedi.Script("import numpy; numpy.lins").complete())
[]numpy.arange
>>> numpy.__version__
'1.19.5'
>>> print(jedi.Script("import numpy; numpy.arange").complete().pop().type)
function>>> numpy.__version__
'1.20.1'
>>> print(jedi.Script("import numpy; numpy.arange").complete().pop().type)
statementI am no expert on the internals of jedi or numpy, but could this related to the new type annotations introduced in numpy 1.20?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels