Skip to content

Ignore unclosed PEP 723 metadata blocks - #126

Draft
zaniebot wants to merge 1 commit into
mainfrom
zb/bughunt100/046-pep723-unclosed-block
Draft

Ignore unclosed PEP 723 metadata blocks#126
zaniebot wants to merge 1 commit into
mainfrom
zb/bughunt100/046-pep723-unclosed-block

Conversation

@zaniebot

@zaniebot zaniebot commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

An unclosed PEP 723 # /// script block currently errors and can hide a later complete block. Ignore incomplete blocks and continue scanning for a later complete block, without changing the handling of nested starts.

See the inline-script metadata specification.

This reverses the user-facing unclosed-tag error introduced in uv#6704 for uv#6700; uv#10918 documents the deliberate exact-closer behavior. Preserve duplicate complete-block rejection from uv#19544.

@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt100/046-pep723-unclosed-block branch from d2860be to de4a32a Compare July 23, 2026 14:41
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.

2 participants