ruff
1d94f26c - [`pyupgrade`] Fix handling of `\N` in raw strings (`UP032`) (#22149)

Commit
4 days ago
[`pyupgrade`] Fix handling of `\N` in raw strings (`UP032`) (#22149) **Summary:** Fixes UP032 autofix incorrectly converting raw strings with `\N{...}` to f-strings, which changes semantics and causes runtime errors. Fixes #22060 ## Test Plan - Added test case for raw strings with \N{...} - Regular strings with \N{...} still autofix correctly - All 119 pyupgrade tests pass --------- Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
Author
Parents
Loading