mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-36374 Mention the alias when suggesting import variants with aliases
GitOrigin-RevId: 24c62c6ec4c9f6038acd641376c27b1047fb2256
This commit is contained in:
committed by
intellij-monorepo-bot
parent
46e8bf3f76
commit
72ca3ddb8b
+3
@@ -155,6 +155,9 @@ public class ImportCandidateHolder implements Comparable<ImportCandidateHolder>
|
||||
sb.append(source.asQualifiedName());
|
||||
}
|
||||
}
|
||||
if (myAsName != null) {
|
||||
sb.append(" as ").append(myAsName);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ public class PyAddImportQuickFixTest extends PyQuickFixTestCase {
|
||||
});
|
||||
assertNotNull(importNumpyAsNpVariant);
|
||||
List<String> candidateText = ContainerUtil.map(fix.getCandidates(), c -> c.getPresentableText());
|
||||
assertContainsInRelativeOrder(candidateText, "numpy", "pandas.np");
|
||||
assertContainsInRelativeOrder(candidateText, "numpy as np", "pandas.np");
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user