Skip to content

PEP 501, 751: Fix docs build for Pygments 2.2.0 #4878

Merged
willingc merged 3 commits intopython:mainfrom
hugovk:infra-fix-pygments-2.20.0
Mar 30, 2026
Merged

PEP 501, 751: Fix docs build for Pygments 2.2.0 #4878
willingc merged 3 commits intopython:mainfrom
hugovk:infra-fix-pygments-2.20.0

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented Mar 29, 2026

Pygments 2.20 was released today:

It added support for both t-strings and TOML 1.1. Great!

But PEP 501 was withdrawn, so the syntax it proposed wasn't implemented. PEP 750's t-strings was. And Pygments now tries to parse t-strings, but breaks on some suggested 501 syntax. Instead, let's mark this block as plain text to avoid parsing force it to build.

And turns out some TOML in PEP 751 was invalid, and accidentally missed closing braces. Not noticed before, because Pygments never tried to parse it. Let's just fix it.

See #4877 (comment) and https://github.com/python/peps/actions/runs/23715290614/job/69083117194?pr=4877 for the build failures.


📚 Documentation preview 📚: https://pep-previews--4878.org.readthedocs.build/

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Copy link
Copy Markdown
Contributor

@willingc willingc left a comment

Choose a reason for hiding this comment

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

Thanks @hugovk for the sleuthing and @StanFromIreland for the review.

@willingc willingc merged commit cd47690 into python:main Mar 30, 2026
5 checks passed
@hugovk hugovk deleted the infra-fix-pygments-2.20.0 branch March 30, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants