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

tidy-imports is failing when a multiline string is used in a multiline f-string (PyInf#13670) #361

Open
saharan-deshaw opened this issue Sep 30, 2024 · 0 comments

Comments

@saharan-deshaw
Copy link
Collaborator

Currently tidy-imports fail when the code contains a multiline string (''' ''') inside a multiline f-string. Reproducer:

$ cat test_tidy.py 
some_fstring = f"""abc
                    {', '.join(['''foo
                                   bar
                                   ''' for a in range(10)])}
"""

$ tidy-imports test_tidy.py
Fails

Opening this issue to fix the above failure.

Thanks.

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

No branches or pull requests

1 participant