Skip to content

Use single quotes inside a double-quoted f-string#14

Merged
jftuga merged 1 commit intojftuga:mainfrom
danielmlow:patch-1
Feb 6, 2025
Merged

Use single quotes inside a double-quoted f-string#14
jftuga merged 1 commit intojftuga:mainfrom
danielmlow:patch-1

Conversation

@danielmlow
Copy link
Contributor

…ng: expecting '}'`

@jftuga
Copy link
Owner

jftuga commented Feb 5, 2025

@danielmlow Other that replacing " character with ', what other change is made? I'm not seeing it. Where is a [ or } character expected? Can you resubmit the PR without changing the quotes? That would make it easier to see the difference.

Oh I see now, I need to have single quotes inside a double-quoted f-string. Is that it?

@jftuga jftuga changed the title Fixed SyntaxError: f-string: unmatched '[' and `SyntaxError: f-stri… Use single quotes inside a double-quoted f-string Feb 6, 2025
@jftuga jftuga merged commit ef52674 into jftuga:main Feb 6, 2025
@jftuga
Copy link
Owner

jftuga commented Feb 6, 2025

Thanks for submitting the PR. I am merging.

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