mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-27 08:51:23 +07:00
Previously, we suggested variants for these well-known aliases only if no other symbols were found. In particular, having "np" name defined in the sources of pandas prevented "import numpy as np" from being offered. ImportCandidateHolder had to be refactored a bit to keep the name of the corresponding symbol itself, because it used to be taken from the parent AutoImportQuickFix, which now only holds the name of the reference, and, thus, "numpy" ended up being imported as "import np as np". Also, such imports are now suggested higher in the list than the rest. GitOrigin-RevId: 75bed654431e81e6df40f1400ee4b02a4ab0dcca
4 lines
31 B
Python
4 lines
31 B
Python
import numpy as np
|
|
|
|
np.ndarray
|