We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6168f4c commit 39c7e5cCopy full SHA for 39c7e5c
1 file changed
malariagen_data/util.py
@@ -145,7 +145,7 @@ def __iter__(self):
145
def __len__(self):
146
return len(self._store)
147
148
- def __setitem__(self, item):
+ def __setitem__(self, key, value): # __setitem__ expects 2 params (Pylint)
149
raise NotImplementedError
150
151
def __delitem__(self, item):
@@ -1538,7 +1538,7 @@ def _compare_series_like(actual, expect):
1538
1539
# Handle object arrays, these don't get nans compared properly.
1540
t = actual.dtype
1541
- if t == object:
+ if t is object: # Type comparisons should use is, is not or isinstance() (Pylint).
1542
expect = expect.fillna("NA")
1543
actual = actual.fillna("NA")
1544
0 commit comments