Skip to content

Commit a51740e

Browse files
committed
Remove unnecessary cast to PythonManagedClass in MroShapeLookupResult
1 parent 9bede13 commit a51740e

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/MroShape.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public Object getFromMro(MroSequenceStorage mro, Object key) {
147147
if (mroIndex == NOT_FOUND_INDEX) {
148148
return PNone.NO_VALUE;
149149
} else {
150-
Object result = readNode.execute(PythonManagedClass.cast(mro.getItemNormalized(mroIndex)), key);
150+
Object result = readNode.execute(mro.getItemNormalized(mroIndex), key);
151151
// We must not get NO_VALUE because that would mean the MROShape contains a class
152152
// with NO_VALUE properties and cannot be used to lookup properties only by shapes
153153
assert result != PNone.NO_VALUE : mro.getClassName() + "." + key;

0 commit comments

Comments
 (0)