Skip to content

Commit c8001c0

Browse files
committed
Fix getset_descriptor.__objclass__
1 parent f622c74 commit c8001c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/getsetdescriptor/GetSetDescriptorTypeBuiltins.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -84,13 +84,13 @@ protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFa
8484
@GenerateNodeFactory
8585
public abstract static class ObjclassNode extends PythonUnaryBuiltinNode {
8686
@Specialization
87-
static GetSetDescriptor doGetSetDescriptor(GetSetDescriptor self) {
88-
return self;
87+
static Object doGetSetDescriptor(GetSetDescriptor self) {
88+
return self.getType();
8989
}
9090

9191
@Specialization
92-
static HiddenKeyDescriptor doHiddenKeyDescriptor(HiddenKeyDescriptor self) {
93-
return self;
92+
static Object doHiddenKeyDescriptor(HiddenKeyDescriptor self) {
93+
return self.getType();
9494
}
9595
}
9696

0 commit comments

Comments
 (0)