Skip to content

Commit 3efe0ac

Browse files
FIX: LGTM error: Special method has incorrect signature
Too few parameters for special method __getitem__, which has 1 parameter, but should have 2, in class FileBasedImage. https://lgtm.com/rules/7850093/
1 parent 75af371 commit 3efe0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/filebasedimages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def __init__(self, header=None, extra=None, file_map=None):
202202
def header(self):
203203
return self._header
204204

205-
def __getitem__(self):
205+
def __getitem__(self, key):
206206
""" No slicing or dictionary interface for images
207207
"""
208208
raise TypeError("Cannot slice image objects.")

0 commit comments

Comments
 (0)