Skip to content

Commit b7191a8

Browse files
committed
Properly report builtin class metatype in GetClassNode
1 parent 64c88b9 commit b7191a8

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/object

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/object/GetClassNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ protected static boolean hasInitialClass(Shape shape) {
215215
}
216216

217217
@Specialization
218-
static Object getPBCT(@SuppressWarnings("unused") PythonBuiltinClassType object) {
219-
return PythonBuiltinClassType.PythonClass;
218+
static Object getPBCT(PythonBuiltinClassType object) {
219+
return object.getType();
220220
}
221221

222222
@Specialization

0 commit comments

Comments
 (0)