Fix: __getitem__ sometimes didnt evaluate all the types.
This commit is contained in:
1 parent
d65684a40b
commit
3910d97b7e
3 files changed
+8
-14
No files matched your search
@@ -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