forked from VimPlug/jedi
Fix: __getitem__ sometimes didnt evaluate all the types.
This commit is contained in:
@@ -41,11 +41,11 @@ b[int():]
|
||||
|
||||
|
||||
class _StrangeSlice():
|
||||
def __getitem__(self, slice):
|
||||
return slice
|
||||
def __getitem__(self, sliced):
|
||||
return sliced
|
||||
|
||||
# Should not result in an error, just because the slice itself is returned.
|
||||
#? []
|
||||
#? slice()
|
||||
_StrangeSlice()[1:2]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user