Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error with new lines in f strings. #873

Closed

Conversation

PhillipChaffee
Copy link

  • Fixed the following error: Python version 3.10 does not allow new lines in expression parts of non-triple-quoted f-strings.

Please describe the changes in your PR. If it is addressing an issue, please reference that as well.

- Fixed the following error: Python version 3.10 does not allow new lines in expression parts of non-triple-quoted f-strings.
@aconchillo
Copy link
Contributor

Oh, coincidentally, I fixed the single line this morning, but kept it long. Does breaking the { in a different line actually works?

@PhillipChaffee
Copy link
Author

Yupp it just needs triple quotes!

@aconchillo
Copy link
Contributor

@PhillipChaffee Thank you so much for the PR. I'll be closing it since having { in a different line looks broken to my old eyes even if we can fix it with triple quotes. 🙏

@aconchillo aconchillo closed this Dec 17, 2024
@PhillipChaffee
Copy link
Author

All good! Thanks for fixing this quickly!

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