[python] PY-80436 support ellipsis

GitOrigin-RevId: 82e38fcb502ed68d5676f2cc774ef2653d69febb
This commit is contained in:
Morgan Bartholomew
2025-05-29 01:00:27 +00:00
committed by intellij-monorepo-bot
parent 1cfa311783
commit 4b1d24562a
50 changed files with 251 additions and 190 deletions
@@ -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;
}
}