mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
optimize imports sorts them according to PEP-8 (PY-2367)
This commit is contained in:
@@ -56,9 +56,9 @@ public abstract class PyElementGenerator {
|
||||
@NotNull
|
||||
public abstract PyCallExpression createCallExpression(final LanguageLevel langLevel, String functionName);
|
||||
|
||||
public abstract PyImportStatement createImportStatementFromText(String text);
|
||||
public abstract PyImportStatement createImportStatementFromText(final LanguageLevel languageLevel, String text);
|
||||
|
||||
public abstract PyImportElement createImportElement(String name);
|
||||
public abstract PyImportElement createImportElement(final LanguageLevel languageLevel, String name);
|
||||
|
||||
@NotNull
|
||||
public abstract <T> T createFromText(LanguageLevel langLevel, Class<T> aClass, final String text);
|
||||
|
||||
@@ -62,4 +62,9 @@ public interface PyFile extends PyElement, PsiFile, PyDocStringOwner, ScopeOwner
|
||||
* @return the deprecation message or null if the function is not deprecated.
|
||||
*/
|
||||
String getDeprecationMessage();
|
||||
|
||||
/**
|
||||
* Returns the sequential list of import statements in the beginning of the file.
|
||||
*/
|
||||
List<PyImportStatementBase> getImportBlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user