Too-few-public-methods warning

Checked, are sensible, disabled pylint warnings.
This commit is contained in:
Marta Marczykowska-Górecka 2017-11-09 17:23:23 +01:00
parent 3d841cf14f
commit e543144aec
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ import PyQt4.QtGui
# TODO description in tooltip
# TODO icon
# pylint: disable=too-few-public-methods
class AppListWidgetItem(PyQt4.QtGui.QListWidgetItem):
def __init__(self, name, ident, parent=None):
super(AppListWidgetItem, self).__init__(name, parent)

View File

@ -620,6 +620,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
for dev in lspci.splitlines():
devs.append((dev.rstrip(), dev.split(' ')[0]))
# pylint: disable=too-few-public-methods
class DevListWidgetItem(QtGui.QListWidgetItem):
def __init__(self, name, ident, parent=None):
super(DevListWidgetItem, self).__init__(name, parent)