mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
Avoid syntax error when removing int over multiple lines (#15230)
## Summary Closes https://github.com/astral-sh/ruff/issues/15226.
This commit is contained in:
parent
2327082c43
commit
3c3f35a548
3 changed files with 105 additions and 20 deletions
|
@ -154,3 +154,9 @@ int(1 / 1)
|
|||
int(1 @ 1)
|
||||
|
||||
int(1. if ... else .2)
|
||||
|
||||
int(1 +
|
||||
1)
|
||||
|
||||
int(round(1,
|
||||
0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue