mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
![]() @AlexWaygood pointed out that the `SliceLiteral` type variant was originally created to handle slices before we had generics. https://github.com/astral-sh/ruff/pull/17927#discussion_r2078115787 Now that we _do_ have generics, we can use a specialization of the `slice` builtin type for slice literals. This depends on https://github.com/astral-sh/ruff/pull/17956, since we need to make sure that all typevar defaults are fully substituted when specializing `slice`. |
||
---|---|---|
.. | ||
resources | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
mdtest.py | ||
mdtest.py.lock |