Skip to content

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

Merged
ntBre merged 1 commit into
mainfrom
brent/ruf017-py314
May 28, 2026
Merged

[ruff] Restore example code for Python versions before 3.15 (RUF017)#25439
ntBre merged 1 commit into
mainfrom
brent/ruf017-py314

Conversation

@ntBre
Copy link
Copy Markdown
Contributor

@ntBre ntBre commented May 28, 2026

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.

Summary
--

Closes #25436 by restoring the previous `Use instead:` snippet from before #23789
@ntBre ntBre added the documentation Improvements or additions to documentation label May 28, 2026
@ntBre ntBre enabled auto-merge (squash) May 28, 2026 18:54
@ntBre ntBre merged commit ba58c84 into main May 28, 2026
44 checks passed
@ntBre ntBre deleted the brent/ruf017-py314 branch May 28, 2026 18:54
anishgirianish pushed a commit to anishgirianish/ruff that referenced this pull request May 28, 2026
…7`) (astral-sh#25439)

Summary
--

Closes astral-sh#25436 by restoring the previous `Use instead:` snippet from
before astral-sh#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RUF017 fix suggestion is a syntax error

2 participants