Skip to content

Commit 39c7e5c

Browse files
committed
Fix a couple of linting errors (Pylint)
1 parent 6168f4c commit 39c7e5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

malariagen_data/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __iter__(self):
145145
def __len__(self):
146146
return len(self._store)
147147

148-
def __setitem__(self, item):
148+
def __setitem__(self, key, value): # __setitem__ expects 2 params (Pylint)
149149
raise NotImplementedError
150150

151151
def __delitem__(self, item):
@@ -1538,7 +1538,7 @@ def _compare_series_like(actual, expect):
15381538

15391539
# Handle object arrays, these don't get nans compared properly.
15401540
t = actual.dtype
1541-
if t == object:
1541+
if t is object: # Type comparisons should use is, is not or isinstance() (Pylint).
15421542
expect = expect.fillna("NA")
15431543
actual = actual.fillna("NA")
15441544

0 commit comments

Comments
 (0)