Fix lint for updated tools

This commit is contained in:
Marko Durkovic
2021-10-21 18:00:44 +02:00
committed by Florian Friesdorf
parent 0e42f941d5
commit 4f658378eb
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -178,7 +178,9 @@ def _comparable():
frombuffer = numpy.frombuffer
def arreq(self: MagicMock, other: Union[MagicMock, Any]) -> bool:
return (getattr(self, '_mock_wraps') == getattr(other, '_mock_wraps', other)).all()
lhs = self._mock_wraps # pylint: disable=protected-access
rhs = getattr(other, '_mock_wraps', other)
return (lhs == rhs).all()
class CNDArray(MagicMock):
"""Mock ndarray."""