Fix pylint errors
This commit is contained in:
parent
bc5e754172
commit
03917eda66
|
@ -66,12 +66,12 @@ class SettingsDialog(Gtk.ApplicationWindow):
|
|||
self.listbox.connect('row-activated', self.on_row_activated)
|
||||
self.connect('key-press-event', self.on_key_press)
|
||||
|
||||
def on_key_press(self, widget, event):
|
||||
def on_key_press(self, _widget, event):
|
||||
if event.keyval == Gdk.KEY_Escape:
|
||||
self.destroy()
|
||||
|
||||
@staticmethod
|
||||
def on_row_activated(listbox, row):
|
||||
def on_row_activated(_listbox, row):
|
||||
row.on_row_activated()
|
||||
|
||||
def get_setting(self, name):
|
||||
|
@ -209,7 +209,7 @@ class GenericSetting(Gtk.ListBoxRow):
|
|||
@staticmethod
|
||||
def __get_value(type_, value, account):
|
||||
if value is None:
|
||||
return
|
||||
return None
|
||||
if type_ == SettingType.VALUE:
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in New Issue