Skip to content

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

This fixes the docs for expressions-in-star-assignment (F621) having a backslash \ before the left shifts <<. I'm not sure why this happened in the first place, as the docstring looks fine, but putting the << inside a code block fixes it. I was not able to track down the source of the issue either. The only other rule with a << is missing-whitespace-around-bitwise-or-shift-operator (E227), which already has it in a code block.

Old docs page:
image

In Python 3, no more than 1 \<< 8 assignments are allowed before a starred expression, and no more than 1 \<< 24 expressions are allowed after a starred expression.

New docs page:
image

In Python 3, no more than 1 << 8 assignments are allowed before a starred expression, and no more than 1 << 24 expressions are allowed after a starred expression.

Test Plan

N/A, no tests/functionality affected.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! I wonder if mkdocs is trying to escape an HTML tag or something.

@ntBre ntBre added the documentation Improvements or additions to documentation label Jul 2, 2025
@ntBre ntBre merged commit 0660188 into astral-sh:main Jul 2, 2025
36 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the patch-5 branch July 2, 2025 19:02
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.

2 participants