mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
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))
|
||||
|
||||
return ContextSet(iterable.Slice(context, *result))
|
||||
elif index.type == 'subscriptlist':
|
||||
return NO_CONTEXTS
|
||||
|
||||
# No slices
|
||||
return context.eval_node(index)
|
||||
|
||||
@@ -42,6 +42,8 @@ b[int():]
|
||||
#? list()
|
||||
b[:]
|
||||
|
||||
#?
|
||||
b[:, 1]
|
||||
|
||||
class _StrangeSlice():
|
||||
def __getitem__(self, sliced):
|
||||
|
||||
Reference in New Issue
Block a user