1
0
forked from VimPlug/jedi

Fix some stub tests

This commit is contained in:
Dave Halter
2018-08-31 01:26:20 +02:00
parent aef4aa6859
commit 2dfe2de0fe
2 changed files with 12 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ CompletionParts = namedtuple('CompletionParts', ['path', 'has_dot', 'name'])
def sorted_definitions(defs):
# Note: `or ''` below is required because `module_path` could be
return sorted(defs, key=lambda x: (x.module_path or '', x.line or 0, x.column or 0))
return sorted(defs, key=lambda x: (x.module_path or '', x.line or 0, x.column or 0, x.name))
def get_on_completion_name(module_node, lines, position):