Repository navigation
Conversation
repr() was dumping things like <Color.red: 'red'> into the docs.
|
The red CI here isn't from this change — it's Pygments 2.21.0, which stopped escaping Six tests fail, all of them string-comparing highlighted HTML:
None of them touch Happy to send the escaping updates as a separate PR if that's useful, or rebase this one once that's sorted — just say which you'd prefer. |
No code change. The previous CI run predates recent master activity; re-trigger to see whether the Pygments HTML escaping failures are still present on tip.
|
Pushed an empty commit to re-run CI on current The earlier red jobs were highlighting tests that assert HTML containing |
azmeuk
left a comment
There was a problem hiding this comment.
Thanks. This fixes the issue I reported. 👌
|
@gyanu2507 are the CI failures due to your code? I guess this PR won't be merged until they are fixed. Would you have some time to spend on it so it gives this PR a chance? |
|
No, the failures weren't from this change. The last CI run (https://github.com/sphinx-doc/sphinx/actions/runs/33652199657, Sept 2) ran against a master that was 48 commits behind, and two things on master were broken at that point:
None of the failing tests touch sphinx/util/typing.py. Master CI has been green since Oct 23 apart from one linkcheck timeout on 3.15t (run 40967878253). I merged current master into the branch (93a44a8) and moved the changelog entry, which the merge had left under 9.1.1, into the 9.3.0 "Bugs fixed" section (fa4e7ec). Locally with Pygments 2.21.0 and Docutils 0.23 on Python 3.13, test_util_typing, test_util_inspect, tests/test_ext_autodoc and the previously failing highlighting, viewcode, text-builder and intl tests all pass (433 passed). CI should go green once it runs on the new head. Thanks for checking the fix. |
…splay # Conflicts: # CHANGES.rst
Annotated[int, Color.red]was going throughrepr(), so autodoc printed<Color.red: 'red'>. Literal already formats enum members as:py:attr:links — reused that for Annotated metadata.Fixes #14653