SIGN IN SIGN UP
astral-sh / ruff UNCLAIMED

An extremely fast Python linter and code formatter, written in Rust.

0 0 35 Rust

[`ruff`] Restore example code for Python versions before 3.15 (`RUF017`) (#25439)

Summary
--

Closes #25436 by restoring the previous `Use instead:` snippet from
before #23789

I thought it would be cool to use the tabs like we have for
pyproject.toml vs ruff.toml snippets, but I wasn't sure if that would
render well in other contexts where we use rule docs and opted just to
have two separate code blocks.
B
Brent Westbrook committed
ba58c8409aa562bc5a8b97d4165031658f96a259
Parent: 320a482
Committed by GitHub <noreply@github.com> on 5/28/2026, 6:54:52 PM