diff --git a/python/src/com/jetbrains/python/formatter/PythonFormattingModelBuilder.java b/python/src/com/jetbrains/python/formatter/PythonFormattingModelBuilder.java index 4e075d5075e8..fd215072fe78 100644 --- a/python/src/com/jetbrains/python/formatter/PythonFormattingModelBuilder.java +++ b/python/src/com/jetbrains/python/formatter/PythonFormattingModelBuilder.java @@ -14,6 +14,7 @@ import com.intellij.psi.tree.TokenSet; import com.jetbrains.python.PythonDialectsTokenSetProvider; import com.jetbrains.python.PythonLanguage; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; import static com.jetbrains.python.PyElementTypes.*; import static com.jetbrains.python.PyTokenTypes.*; @@ -43,6 +44,15 @@ public class PythonFormattingModelBuilder implements FormattingModelBuilderEx, C return FormattingModelProvider.createFormattingModelForPsiFile(element.getContainingFile(), block, settings); } + @Nullable + @Override + public CommonCodeStyleSettings.IndentOptions getIndentOptionsToUse(@NotNull PsiFile file, + @NotNull FormatTextRanges ranges, + @NotNull CodeStyleSettings settings) + { + return null; + } + @NotNull public FormattingModel createModel(final PsiElement element, final CodeStyleSettings settings) { return createModel(element, settings, FormattingMode.REFORMAT);