PEP 501, 751: Fix docs build for Pygments 2.2.0 #4878
Merged
willingc merged 3 commits intopython:mainfrom Mar 30, 2026
Merged
Conversation
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
StanFromIreland
approved these changes
Mar 29, 2026
willingc
approved these changes
Mar 30, 2026
Contributor
willingc
left a comment
There was a problem hiding this comment.
Thanks @hugovk for the sleuthing and @StanFromIreland for the review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 parsingforce 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/