mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
Switch default language level to the latest Python (PY-37933)
GitOrigin-RevId: 845a29b66dd3f71a8c5ed1fdefa9ae9a4bfaff79
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a62847ec98
commit
b57c568df4
@@ -92,13 +92,13 @@ public enum LanguageLevel {
|
||||
);
|
||||
|
||||
private static final LanguageLevel DEFAULT2 = PYTHON27;
|
||||
private static final LanguageLevel DEFAULT3 = PYTHON37;
|
||||
private static final LanguageLevel DEFAULT3 = PYTHON38;
|
||||
|
||||
public static LanguageLevel FORCE_LANGUAGE_LEVEL = null;
|
||||
|
||||
@NotNull
|
||||
public static LanguageLevel getDefault() {
|
||||
return DEFAULT2;
|
||||
return getLatest();
|
||||
}
|
||||
|
||||
private final int myVersion;
|
||||
@@ -213,7 +213,6 @@ public enum LanguageLevel {
|
||||
|
||||
@NotNull
|
||||
public static LanguageLevel getLatest() {
|
||||
//noinspection ConstantConditions
|
||||
return ArrayUtil.getLastElement(values());
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -66,6 +67,7 @@ public abstract class PyElementGenerator {
|
||||
* @deprecated use the overload with language level specified
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2020.1")
|
||||
public abstract PyExpression createExpressionFromText(String text);
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user