mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix from dcherysasov
This commit is contained in:
@@ -544,7 +544,7 @@ public class ResolveImportUtil {
|
||||
// OTOH, quite often a module named foo exports a class or function named foo, which is used as a fallback
|
||||
// by a module one level higher (e.g. curses.set_key). Prefer it to submodule if possible.
|
||||
ret = ((PyFile)parent).getElementNamed(referencedName);
|
||||
if (PyUtil.instanceOf(ret, PyFunction.class, PyClass.class)) return ret;
|
||||
if (ret != null && !PyUtil.instanceOf(ret, PsiFile.class, PsiDirectory.class)) return ret;
|
||||
if (possible_ret != null) return possible_ret;
|
||||
}
|
||||
else if (parent instanceof PsiDirectory) {
|
||||
|
||||
Reference in New Issue
Block a user