Fix Django console to work with the refactored Python console from #PR444
[idea/community.git] / python / src / com / jetbrains / python / console / PydevConsoleRunnerFactory.java
index ffecb6ddb39c434ba6630222429710b8711eae5b..9046a494f0a0a3fba01aafda6147ed2b1efb40c2 100644 (file)
@@ -42,6 +42,7 @@ import java.util.Map;
  */
 public class PydevConsoleRunnerFactory extends PythonConsoleRunnerFactory {
   @Override
+  @NotNull
   public PydevConsoleRunnerImpl createConsoleRunner(@NotNull Project project,
                                                     @Nullable Module contextModule) {
     Pair<Sdk, Module> sdkAndModule = PydevConsoleRunner.findPythonSdkAndModule(project, contextModule);
@@ -125,6 +126,7 @@ public class PydevConsoleRunnerFactory extends PythonConsoleRunnerFactory {
     envs.put(PythonEnvUtil.IPYTHONENABLE, ipythonEnabled);
   }
 
+  @NotNull
   protected PydevConsoleRunnerImpl createConsoleRunner(Project project,
                                                        Sdk sdk,
                                                        String workingDir,