We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c525cc8 commit 9ca4cb0Copy full SHA for 9ca4cb0
src/kirin/dialects/py/indexing.py
@@ -233,8 +233,8 @@ def getitem(
233
if isinstance(index.data, int) and 0 <= index.data < len(obj):
234
return (obj[index.data],)
235
elif isinstance(index.data, slice):
236
- start, stop, step = index.data.indices(len(obj))
237
- return (const.PartialTuple(obj[start:stop:step]),)
+ sl = index.data
+ return (const.PartialTuple(obj[sl.start : sl.stop : sl.step]),)
238
return (const.Unknown(),)
239
240
0 commit comments