-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
AttributeError: 'Subscript' object has no attribute 'name' #4439
Comments
Look like we're affected in our own merge request (#4422) |
Same error, different location:
pylint --version: |
@FrankyBoy could you open another issue and provide the code or a snippet that is making pylint crash, please ? |
Sorry I thought this issue was closed, no need to create a new one. |
Heh, forgot to exclude the venv from my scan, and this failure actually comes from some library code ... it's pyparsing ( |
Seems distinct from #2250
Maybe a regression, or another edge case?
Steps to reproduce
Given a file
a.py
:Where a typo was made in the last line - first
=
should be:
.Current behavior
Pylint crashes if executed on the file, or on any file that imports it.
Additionally: If you run
pylint b.py
whereb.py
is:The error message does not mention
a.py
at all:Expected behavior
Should catch and report the problem, not crash. Perhaps:
pylint --version output
Result of
pylint --version
output:Additional dependencies
The text was updated successfully, but these errors were encountered: