1
0
forked from VimPlug/jedi

Some small import completion fixes.

This commit is contained in:
Dave Halter
2014-12-11 13:00:48 +01:00
parent c4c3ef5a21
commit d6b2a64343
2 changed files with 6 additions and 7 deletions

View File

@@ -54,6 +54,9 @@ def importer_from_error_statement(error_statement, pos):
for typ, nodes in error_statement.stack:
if typ == 'dotted_name':
names += check_dotted(nodes)
elif typ == 'import_name':
if nodes[0].start_pos <= pos <= nodes[0].end_pos:
return None, 0, False
elif typ == 'import_from':
for node in nodes:
if isinstance(node, pt.Node) and node.type == 'dotted_name':