Skip to content

fix: Python >3.12 issue with reused quotes in f-strings pre PEP 701#55

Merged
tuunit merged 1 commit into
tuunit:mainfrom
Saphnx:main
May 18, 2026
Merged

fix: Python >3.12 issue with reused quotes in f-strings pre PEP 701#55
tuunit merged 1 commit into
tuunit:mainfrom
Saphnx:main

Conversation

@Saphnx
Copy link
Copy Markdown
Contributor

@Saphnx Saphnx commented May 18, 2026

The error message when throwing an exception used a combo of double and single quotes, causing f-string to fail. This was fixed in Python >=3.12, but this fix makes it safe for Python <3.12.

We learn something new every day! =)

Copy link
Copy Markdown
Owner

@tuunit tuunit left a comment

Choose a reason for hiding this comment

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

LGTM

@tuunit tuunit changed the title fix: Python <3.12 issue with reused quotes in f-strings pre PEP 701 fix: Python >3.12 issue with reused quotes in f-strings pre PEP 701 May 18, 2026
@tuunit tuunit merged commit 848d980 into tuunit:main May 18, 2026
1 check passed
@tuunit
Copy link
Copy Markdown
Owner

tuunit commented May 18, 2026

Thanks for the quick fix <3

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