mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00
Add support for trailing colons in slice expressions (#3077)
This commit is contained in:
parent
7d4e513a82
commit
ce8953442d
5 changed files with 29 additions and 2 deletions
|
@ -34,4 +34,3 @@ ham[lower:upper], ham[lower:upper:], ham[lower::step]
|
|||
# ham[lower+offset : upper+offset]
|
||||
ham[: upper_fn(x) : step_fn(x)], ham[:: step_fn(x)]
|
||||
ham[lower + offset : upper + offset]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue