Skip to content

E703: semicolon followed by ellipsis causes syntax error #5154

@addisoncrump

Description

@addisoncrump

This one is fairly straightforward, and potentially indicates other issues with E703.

The original source:

while 1:
  1;...

And the ruff output:

error: Autofix introduced a syntax error in `minimized-from-crash-70aec6f79bd62d88` with rule codes E703: invalid syntax. Got unexpected token '.' at byte offset 14
---
while 1:
  1...

---
minimized-from-crash-70aec6f79bd62d88:2:4: E703 Statement ends with an unnecessary semicolon
  |
1 | while 1:
2 |   1;...
  |    ^ E703
  |
  = help: Remove unnecessary semicolon

Found 1 error.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions