mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00

Add a new method to the semantic model to simplify and improve the correctness of a common pattern
16 lines
209 B
Python
16 lines
209 B
Python
# PIE808
|
|
range(0, 10)
|
|
|
|
import builtins
|
|
builtins.range(0, 10)
|
|
|
|
# OK
|
|
range(x, 10)
|
|
range(-15, 10)
|
|
range(10)
|
|
range(0)
|
|
range(0, 10, x)
|
|
range(0, 10, 1)
|
|
range(0, 10, step=1)
|
|
range(start=0, stop=10)
|
|
range(0, stop=10)
|