jedi
jedi copied to clipboard
how jedi get auto completions from a module
I want to know how jedi get auto completions from a python module.
when I run first:

Should it run import paddle
first? but there is not any module of paddle in sys.modules.keys()
, so paddle may be import again each time and trigger an error.
but when I run seconed time:

An error has occurred, I think that it's because of the auto completions mechanism bug of jedi. Does anyone have an opinion on that?
related to https://github.com/davidhalter/jedi/issues/1849
I feel like Jedi doesn't do very weird stuff. AFAIK it uses __import__
. My feeling is that this is a paddle
issue.
I do not think Jedi is doing very weird things here. I have also no idea how to debug this. Please let me know if I can help with debugging something, but for now I'll close.