Skip to content

Commit 8968d8c

Browse files
committed
[GR-33317] Remove unnecessary cast to PythonManagedClass in MroShapeLookupResult.
PullRequest: graalpython/1942
2 parents 8a8c3f0 + a51740e commit 8968d8c

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)