Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[v1.x] Work around two pylint false positives in mxnet/io/io.py #18269

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/mxnet/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def next(self):
raise StopIteration

def __next__(self):
return self.next()
return self.next() # pylint: disable=E1102

def iter_next(self):
"""Move to the next batch.
Expand Down Expand Up @@ -830,7 +830,7 @@ def __init__(self, handle, data_name='data', label_name='softmax_label', **_):

# load the first batch to get shape information
self.first_batch = None
self.first_batch = self.next()
self.first_batch = self.next() # pylint: disable=E1102
data = self.first_batch.data[0]
label = self.first_batch.label[0]

Expand Down