-
Notifications
You must be signed in to change notification settings - Fork 0
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
Parsing error #4
Comments
Works fine for me... (tested on Python 3.9 though) |
Narrowed it down further, although I realize this is a PEP8 violation, it occurs if there is no new line and the last character is a closing quote. (Checked on Python 3.9 to match you) |
OK, I'm inclined to say "garbage in, garbage out" (text/code files should ALWAYS contain a trailing linebreak), but if it's not a bug in parso but pyquotes and can be easily fixed I'll accept a PR for it. |
This is the full stack trace, and confirmed it doesn't happen for example if the contents is |
OS: Windows 10 21H2
Python: Python 3.10.4
Steps:
example.py
All fail with the error
If a
print('Hello, World!')
is added to the file, it behaves as expected.Thank you for your time, this library has saved my many hours.
The text was updated successfully, but these errors were encountered: