From c6570084942e72caf69a5ec1e301b107bbebfc79 Mon Sep 17 00:00:00 2001 From: Nick Guletskii Date: Sat, 9 May 2020 17:20:59 +0300 Subject: [PATCH] Work around two pylint false positives in mxnet/io/io.py --- python/mxnet/io/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mxnet/io/io.py b/python/mxnet/io/io.py index 5a022ea1c81c..1b8f265b7045 100644 --- a/python/mxnet/io/io.py +++ b/python/mxnet/io/io.py @@ -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. @@ -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]