forked from VimPlug/jedi
Fix isses with interpreter completions.
This commit is contained in:
@@ -48,8 +48,7 @@ class LazyName(helpers.FakeName):
|
|||||||
module = obj
|
module = obj
|
||||||
else:
|
else:
|
||||||
class FakeParent(pr.Base):
|
class FakeParent(pr.Base):
|
||||||
parent = None # To avoid having no parent for NamePart.
|
parent = compiled.builtin
|
||||||
path = None
|
|
||||||
|
|
||||||
names = []
|
names = []
|
||||||
try:
|
try:
|
||||||
@@ -67,8 +66,7 @@ class LazyName(helpers.FakeName):
|
|||||||
module = builtins
|
module = builtins
|
||||||
else:
|
else:
|
||||||
module = __import__(module_name)
|
module = __import__(module_name)
|
||||||
fake_name = helpers.FakeName(names, FakeParent())
|
parser_path = [helpers.FakeName(n, FakeParent()) for n in names]
|
||||||
parser_path = fake_name.names
|
|
||||||
raw_module = get_module(self._value)
|
raw_module = get_module(self._value)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user