Skip to content

Commit 1a9ce09

Browse files
committed
fix PyObjectGetItem call to __class_getitem__
1 parent 22f1295 commit 1a9ce09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/lib/PyObjectGetItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Object doGeneric(VirtualFrame frame, Object object, Object key,
105105
if (getItem != PNone.NO_VALUE) {
106106
return callGetItem.executeObject(frame, getItem, object, key);
107107
}
108-
Object item = getItemClass.execute(frame, type, key);
108+
Object item = getItemClass.execute(frame, object, key);
109109
if (item != PNone.NO_VALUE) {
110110
return item;
111111
}

0 commit comments

Comments
 (0)