forked from VimPlug/jedi
The docstring of import completions was wrong.
This is fixed now. However, since this might massively decrease performance, it's not enabled by default. You can enable it with `docstring(fast=False)` (see test changes), but I wouldn't recommend it at this point. Fixes #656.
This commit is contained in:
@@ -355,7 +355,11 @@ class Importer(object):
|
||||
return set([module])
|
||||
|
||||
def _generate_name(self, name):
|
||||
return helpers.FakeName(name, parent=self.module)
|
||||
# Create a pseudo import to be able to follow them.
|
||||
name = helpers.FakeName(name)
|
||||
imp = helpers.FakeImport(name, parent=self.module)
|
||||
name.parent = imp
|
||||
return name
|
||||
|
||||
def _get_module_names(self, search_path=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user