1
0
forked from VimPlug/jedi

Fix descriptions for REPL.

This commit is contained in:
Dave Halter
2016-05-15 23:32:16 +02:00
parent 50f6bb0299
commit 818730d6ea
2 changed files with 8 additions and 1 deletions

View File

@@ -153,6 +153,13 @@ class NameFinder(object):
last_names.append(name)
continue
if isinstance(stmt, er.ModuleWrapper):
# In case of REPL completion, we can infer modules names that
# don't really have a definition (because they are really just
# namespaces). In this case we can just add it.
last_names.append(name)
continue
if isinstance(name, compiled.CompiledName) \
or isinstance(name, er.InstanceName) and isinstance(name._origin_name, compiled.CompiledName):
last_names.append(name)