mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-17 22:08:28 +00:00
#5605 has been fixed, i added the failing example from the issue as a regression test. Closes #5605
This commit is contained in:
parent
a961f75e13
commit
fb46579d30
2 changed files with 9 additions and 0 deletions
|
@ -80,3 +80,6 @@ e200 = "e"[a() :: ]
|
|||
e201 = "e"[a() :: 1]
|
||||
e202 = "e"[a() :: a()]
|
||||
e210 = "e"[a() : 1 :]
|
||||
|
||||
# Regression test for https://github.com/astral-sh/ruff/issues/5605
|
||||
f = "f"[:,]
|
||||
|
|
|
@ -86,6 +86,9 @@ e200 = "e"[a() :: ]
|
|||
e201 = "e"[a() :: 1]
|
||||
e202 = "e"[a() :: a()]
|
||||
e210 = "e"[a() : 1 :]
|
||||
|
||||
# Regression test for https://github.com/astral-sh/ruff/issues/5605
|
||||
f = "f"[:,]
|
||||
```
|
||||
|
||||
## Output
|
||||
|
@ -170,6 +173,9 @@ e200 = "e"[a() : :]
|
|||
e201 = "e"[a() :: 1]
|
||||
e202 = "e"[a() :: a()]
|
||||
e210 = "e"[a() : 1 :]
|
||||
|
||||
# Regression test for https://github.com/astral-sh/ruff/issues/5605
|
||||
f = "f"[:,]
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue