mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
improve and simplify "auto-import via existing import statement" logic
This commit is contained in:
@@ -27,10 +27,16 @@ public interface PyFile extends PyElement, PsiFile, PyDocStringOwner, ScopeOwner
|
||||
|
||||
LanguageLevel getLanguageLevel();
|
||||
|
||||
/**
|
||||
* Return the list of all 'from ... import' statements in the top-level scope of the file.
|
||||
*
|
||||
* @return the list of 'from ... import' statements.
|
||||
*/
|
||||
@NotNull
|
||||
List<PyFromImportStatement> getFromImports();
|
||||
|
||||
/**
|
||||
* Returns the list of import elements in all 'import xxx' statements within the file.
|
||||
* Returns the list of import elements in all 'import xxx' statements in the top-level scope of the file.
|
||||
*
|
||||
* @return the list of import targets.
|
||||
*/
|
||||
@@ -51,7 +57,7 @@ public interface PyFile extends PyElement, PsiFile, PyDocStringOwner, ScopeOwner
|
||||
boolean hasImportFromFuture(FutureFeature feature);
|
||||
|
||||
/**
|
||||
* If the function raises a DeprecationWarning or a PendingDeprecationWarning, returns the explanation text provided for the warning..
|
||||
* If the function raises a DeprecationWarning or a PendingDeprecationWarning, returns the explanation text provided for the warning.
|
||||
*
|
||||
* @return the deprecation message or null if the function is not deprecated.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user