forked from VimPlug/jedi
Somehow forgot about subscriptlist. Just ignore those for now.
Fixes #1010.
This commit is contained in:
@@ -650,6 +650,8 @@ def eval_subscript_list(evaluator, context, index):
|
|||||||
result += [None] * (3 - len(result))
|
result += [None] * (3 - len(result))
|
||||||
|
|
||||||
return ContextSet(iterable.Slice(context, *result))
|
return ContextSet(iterable.Slice(context, *result))
|
||||||
|
elif index.type == 'subscriptlist':
|
||||||
|
return NO_CONTEXTS
|
||||||
|
|
||||||
# No slices
|
# No slices
|
||||||
return context.eval_node(index)
|
return context.eval_node(index)
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ b[int():]
|
|||||||
#? list()
|
#? list()
|
||||||
b[:]
|
b[:]
|
||||||
|
|
||||||
|
#?
|
||||||
|
b[:, 1]
|
||||||
|
|
||||||
class _StrangeSlice():
|
class _StrangeSlice():
|
||||||
def __getitem__(self, sliced):
|
def __getitem__(self, sliced):
|
||||||
|
|||||||
Reference in New Issue
Block a user