-
-
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
pylint 2.16 fails on python 3.8.16 #8161
Comments
Thank you for opening the issue. Can you provide any information about the code pylint was run on when it crashed ? |
Same here for python 3.7.3, |
Am I dumb or is this really strange? How can |
The problem is tmp = node[1]
tmp += files
node[1] = tmp and assigning the tuple item does not work. EDIT: Replacing the offending code with |
Yeah that should fix it. Are you able to provide a patch/PR? |
Closes pylint-dev#8161 Co-authored-by: Marc Schmitzer <[email protected]>
Closes #8161 Co-authored-by: Marc Schmitzer <[email protected]>
Closes #8161 Co-authored-by: Marc Schmitzer <[email protected]> (cherry picked from commit 4689b19)
If someone has a reproducer this would still be appreciated as this part of the code is not tested properly right now. |
Closes #8161 Co-authored-by: Marc Schmitzer <[email protected]> (cherry picked from commit 4689b19) Co-authored-by: Pierre Sassoulas <[email protected]>
I found one. Interestingly, this does not seem related to the interpreter version, but hashseed dependant:
EDIT: Sorry, I fixed up the example to include the |
Bug description
pytlint fails itself on python 3.8.
3.9 and above seem OK
packages/pylint/checkers/imports.py", line 179, in _make_tree_defs
node[1] += files
TypeError: 'tuple' object does not support item assignment
Configuration
Command used
Pylint output
Expected behavior
Not to fail ...
Pylint version
OS / Environment
ubuntu-latest on github actions
but also MacOS 13.2 etc
Additional dependencies
N/A
The text was updated successfully, but these errors were encountered: