-
-
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
Crash 'AsStringVisitor' object has no attribute 'visit_unknown'
#5048
Comments
I narrowed down the issue to: def func(parameter):
if tuple() + (parameter[1],) in set():
raise Exception() Going to see if I can find a solution, but someone might know what's up with this! |
@DanielNoord The issue is caused by pylint-dev/astroid#979. Instead, I would recommend to add |
@DanielNoord Would you like to prepare the PR? I can do the review if you link me. |
Yeah sure! Will probably do that tomorrow if that's okay? |
No problem. Thanks! |
This deals with pylint-dev/pylint#5048
Closes #5048 Co-authored-by: Marc Mueller <[email protected]>
Bug description
pylint crashed with a
AttributeError
when parsing a file, see stacktrace below.Edit: Forgot to mention this is a regression. File worked in pylint 2.10.2/astroid 2.7.3.
The example below is as condensed as possible (to the point of not making sense, I know):
Configuration
No response
Command used
Pylint output
Expected behavior
Not quite sure, but not crashing
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: