mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix "DummyHolder cannot be cast to com.jetbrains.python.psi.PyFile"
This commit is contained in:
@@ -507,7 +507,9 @@ public class PyCallExpressionHelper {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (((PyFile)call.getContainingFile()).getLanguageLevel().isPy3K() && containingClass != null) {
|
||||
else if ((call.getContainingFile() instanceof PyFile) &&
|
||||
((PyFile)call.getContainingFile()).getLanguageLevel().isPy3K() &&
|
||||
(containingClass != null)) {
|
||||
return new Maybe<PyType>(getSuperClassUnionType(containingClass));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user