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

[BUG] Error parsing import statement #203

Closed
sk- opened this issue Nov 15, 2021 · 2 comments
Closed

[BUG] Error parsing import statement #203

sk- opened this issue Nov 15, 2021 · 2 comments

Comments

@sk-
Copy link

sk- commented Nov 15, 2021

The following file

from math import (exp as
exponential)

print(exponential(1))

executes perfectly but fixit fails with the following error:

Encountered the following error while parsing source code in file test.py:
Syntax Error @ 2:12.
Internal error: There must be at least one space between 'as' and name.

exponential)
           ^

Found 0 reports in 1 files in 0.51 seconds.
@zsol
Copy link
Member

zsol commented Nov 16, 2021

This is because of Instagram/LibCST#530

@amyreese
Copy link
Member

I believe this is resolved by upgrading LibCST to the latest version (and using the new parser).

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

3 participants