mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-15 02:01:58 +08:00
More test fixes.
This commit is contained in:
@@ -136,7 +136,7 @@ class Completion:
|
||||
try:
|
||||
stack = helpers.get_stack_at_position(grammar, self._source, self._module, pos)
|
||||
except helpers.OnErrorLeaf:
|
||||
return []
|
||||
return self._simple_complete(completion_parts)
|
||||
|
||||
allowed_keywords, allowed_tokens = \
|
||||
helpers.get_possible_completion_types(grammar, stack)
|
||||
|
||||
@@ -98,6 +98,7 @@ def get_stack_at_position(grammar, source, module, pos):
|
||||
if pos <= user_stmt.start_pos:
|
||||
try:
|
||||
leaf = user_stmt.get_previous_leaf()
|
||||
print(user_stmt, leaf)
|
||||
except IndexError:
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user