diff options
| author | hippo91 <guillaume.peillex@gmail.com> | 2020-09-14 22:15:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-14 22:15:55 +0200 |
| commit | bb3572368c7ebf4155e9c3bbe5911a5331aec730 (patch) | |
| tree | 7c71149c84a805867d75532028913cfaa6c832cc | |
| parent | e39d8fe2bbccd3851dcf456667f91b56aa692085 (diff) | |
| download | astroid-git-bb3572368c7ebf4155e9c3bbe5911a5331aec730.tar.gz | |
Add the value parameter in the signature of the __or__ method of the ndarray class.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | astroid/brain/brain_numpy_ndarray.py | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -11,6 +11,11 @@ Release Date: TBA Fixes PyCQA/pylint#3640 +* Fixes a bug in the signature of the ``ndarray.__or__`` method, + in the ``brain_numpy_ndarray.py`` module. + + Fixes #815 + * Added a brain for ``sqlalchemy.orm.session`` * Separate string and bytes classes patching diff --git a/astroid/brain/brain_numpy_ndarray.py b/astroid/brain/brain_numpy_ndarray.py index 31dbe4f6..93dd3d31 100644 --- a/astroid/brain/brain_numpy_ndarray.py +++ b/astroid/brain/brain_numpy_ndarray.py @@ -73,7 +73,7 @@ def infer_numpy_ndarray(node, context=None): def __mul__(self, value): return numpy.ndarray([0, 0]) def __ne__(self, value): return numpy.ndarray([0, 0]) def __neg__(self): return numpy.ndarray([0, 0]) - def __or__(self): return numpy.ndarray([0, 0]) + def __or__(self, value): return numpy.ndarray([0, 0]) def __pos__(self): return numpy.ndarray([0, 0]) def __pow__(self): return numpy.ndarray([0, 0]) def __repr__(self): return str() |
