1 parent bdb0d2d commit bc5b896Copy full SHA for bc5b896
1 file changed
tests/basics/builtin_slice.py
@@ -4,4 +4,8 @@
4
class A:
5
def __getitem__(self, idx):
6
print(idx)
7
-A()[1:2:3]
+ return idx
8
+s = A()[1:2:3]
9
+
10
+# check type
11
+print(type(s) is slice)
0 commit comments