You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python -m pylint test.py
************* Module test
test.py:15:4: E1137: 'comp_zeros.imag' does not support item assignment (unsupported-assignment-operation)
test.py:16:4: E1137: 'comp_zeros.real' does not support item assignment (unsupported-assignment-operation)
------------------------------------------------------------------
Your code has been rated at 4.12/10
Expected behavior
I expected E1137 to be appeared in line 24 and 25 (incorrect code).
Lint Output
test.py:24:4: E1137: 'comp_zeros[0].imag' does not support item assignment (unsupported-assignment-operation)
test.py:25:4: E1137: 'comp_zeros[1].real' does not support item assignment (unsupported-assignment-operation)
Versions
pylint 2.4.4
astroid 2.3.3
Python 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 01:31:54) [MSC v.1916 64 bit (AMD64)]
and
$ pip show numpy
Name: numpy
Version: 1.18.0
... (omitted)
The text was updated successfully, but these errors were encountered:
@wldh-g there are two problems here: the wrong positive one and the wrong negative one.
For the wrong positive the fix will be quite easy (i have got already a draft) however fixing the wrong negative would necessitate a huge work that is, to my mind, not worthy.
When I pylinted a script contains
numpy.complex
array, E1137 appeared on correct code, and not in incorrect code.Steps to reproduce
Current behavior
I saved above script in
test.py
.Script Output
Lint Output
Expected behavior
I expected E1137 to be appeared in line 24 and 25 (incorrect code).
Lint Output
Versions
and
The text was updated successfully, but these errors were encountered: