Handle string escaping for SimpleString expression in FormattedString
Open
parsing
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 229
- PR merge metrics
- No merged PRs in 30d
Description
`f"{a or ""}"` this is invalid syntax but LibCST handles it and renders the invalid code.
We can either:
- automatically escape the string quotes in the inner expression.
- raise exception on code generation.
Contributor guide
Assessment
This issue has not been assessed yet.