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
************* Module numpy_ndarray
numpy_ndarray.py:4:2: W0235: Useless super delegation in method '__or__' (useless-super-delegation)
numpy_ndarray.py:5:11: E1121: Too many positional arguments for method call (too-many-function-args)
@eugene57 thanks for the report.
You are right, the __or__ method is a binary operator. The PR #832 corrects this and now the result of pylint on your piece of code is the following:
bug_astroid_815.py:5:4: W0235: Useless super delegation in method '__or__' (useless-super-delegation)
------------------------------------------------------------------
Your code has been rated at 7.50/10 (previous run: 7.50/10, +0.00)
Steps to reproduce
Lint following file:
This is likely caused by https://github.com/PyCQA/astroid/blob/master/astroid/brain/brain_numpy_ndarray.py#L74
Current behavior
Expected behavior
No E1121 error.
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output2.4.1
The text was updated successfully, but these errors were encountered: