[ruff] Fix syntax error introduced for an empty string followed by a u-prefixed string (UP025) (#18899)

## Summary
/closes #18895
## Test Plan

---------

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
This commit is contained in:
Илья Любавский 2025-07-01 16:34:08 +03:00 committed by GitHub
parent dac4e356eb
commit 667dc62038
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 111 additions and 5 deletions

View file

@ -26,3 +26,9 @@ def hello():
f"foo"u"bar" # OK
f"foo" u"bar" # OK
# https://github.com/astral-sh/ruff/issues/18895
""u""
""u"hi"
""""""""""""""""""""u"hi"
""U"helloooo"