pylint: Ignore different argument lengths for dnf callback.

It may or may not be used with a newer version of dnf. The callback
doesn't use the argument so just ignore it.
This commit is contained in:
Brian C. Lane 2017-05-24 09:11:55 -07:00
parent 10bbeac6d1
commit a92aa63491

View File

@ -80,6 +80,8 @@ class LoraxDownloadCallback(dnf.callback.DownloadProgress):
self.downloads[nevra] = done
self._update()
# dnf 2.5.0 adds a new argument, accept it if it is passed
# pylint: disable=arguments-differ
def start(self, total_files, total_size, total_drpms=0):
self.total_files = total_files
self.total_size = total_size