-
Notifications
You must be signed in to change notification settings - Fork 188
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
parse error for comprehensions in f-strings #388
Comments
As stated, this looks like a simple missing LibCST/libcst/_parser/conversions/expression.py Line 1039 in 6ae2583
Did this report come from Hypothesmith or is it a simplified version of a real case you found? Because it looks like cpython prints something non-useful and I'm wondering if there's more to it: >>> f'{1 for x in (1, 2, 3)}'
'<generator object <genexpr> at 0x7f626677f580>' |
The latter. I'm pretty sure this was some broken logging code that never actually executed. |
Yes, we can add the |
Just saw this today when running µsort on code containing something like: some.func(
f"{[(a, b)] for a, b in other.func()}"
) Is this is an easy fix, and/or can you point me at the right place and the changes I should make and where to best test it? |
The text was updated successfully, but these errors were encountered: