Skip to content

fix: KeyError: ReservedString(}) - #254

Closed
Rainyyyyyyy111 wants to merge 1 commit into
davidhalter:masterfrom
Rainyyyyyyy111:oss-contributor/issue-207
Closed

Rainyyyyyyy111 wants to merge 1 commit into
davidhalter:masterfrom
Rainyyyyyyy111:oss-contributor/issue-207

Conversation

@Rainyyyyyyy111

Copy link
Copy Markdown

Fixes #207

The literal-token patterns treated backslash-brace pairs as escapes, consuming the opening replacement-field delimiter.

Preserve replacement-field braces after backslashes in single-line and multiline f-strings. Add a regression covering raw prefixes, quote styles and formatted expressions.

Validation: the regression fails on the original code and passes with the fix; the configured test suite and checks pass.

AI-assisted with Codex; independently tested by OSS Contributor.

OSS-Contributor-Artifact: 3947ef8e647777853b471950292cb140e290147f5dabce7029ab46ffa8f36622
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.

KeyError: ReservedString(})

2 participants