mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
[python] PY-80436 support ellipsis
GitOrigin-RevId: 82e38fcb502ed68d5676f2cc774ef2653d69febb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1cfa311783
commit
4b1d24562a
@@ -1151,8 +1151,8 @@ public class PyBlock implements ASTBlock {
|
||||
private static boolean isEllipsis(@NotNull PyAstStatement statement) {
|
||||
if (statement instanceof PyAstExpressionStatement) {
|
||||
final PyAstExpression expression = ((PyAstExpressionStatement)statement).getExpression();
|
||||
if (expression instanceof PyAstNoneLiteralExpression) {
|
||||
return ((PyAstNoneLiteralExpression)expression).isEllipsis();
|
||||
if (expression instanceof PyAstEllipsisLiteralExpression) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user