Skip to content

Avoid false metadata matches in strings - #2139

Closed
jw9829 wants to merge 1 commit into
python:mainfrom
jw9829:recommend-inline-metadata-in-strings
Closed

jw9829 wants to merge 1 commit into
python:mainfrom
jw9829:recommend-inline-metadata-in-strings

Conversation

@jw9829

@jw9829 jw9829 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Show how adjacent string literals keep a # /// script line from being mistaken for metadata by a simple scanner.

Fixes #1835.


📚 Documentation preview 📚: https://python-packaging-user-guide--2139.org.readthedocs.build/en/2139/

@henryiii
henryiii force-pushed the recommend-inline-metadata-in-strings branch from b7e4c9d to 4dcf6d3 Compare October 29, 2026 13:40
@rgommers rgommers added type: enhancement A self-contained enhancement or new feature component: specifications labels Nov 10, 2026

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since this adds exactly the solution Brett objected against, I will close this as a drive-by PR - you didn't read the issue. And given that this is a change to Specifications, it's not worth engaging with this, sorry.

@rgommers rgommers closed this Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: specifications type: enhancement A self-contained enhancement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add recommendation for "escaping" quoted inline script metadata

2 participants