diff --git a/qutebrowser/widgets/completion.py b/qutebrowser/widgets/completion.py index 25da2c133..713be2309 100644 --- a/qutebrowser/widgets/completion.py +++ b/qutebrowser/widgets/completion.py @@ -115,9 +115,10 @@ class CompletionView(QTreeView): SettingOptionCompletionModel(sect, self)) for opt in configdata()[sect].keys(): try: - self._completion_models['value_{}_{}'.format(sect,opt)] = ( + modelname = 'value_{}_{}'.format(sect, opt) + self._completion_models[modelname] = ( CompletionFilterModel(SettingValueCompletionModel(sect, - opt, self))) + opt, self))) except NoCompletionsError: pass self._ignore_next = False @@ -278,8 +279,8 @@ class CompletionView(QTreeView): return idx = self._next_idx(shift) self.selectionModel().setCurrentIndex( - idx, QItemSelectionModel.ClearAndSelect | - QItemSelectionModel.Rows ) + idx, QItemSelectionModel.ClearAndSelect | + QItemSelectionModel.Rows) data = self._model.data(idx) if data is not None: self._ignore_next = True diff --git a/qutebrowser/widgets/tabbar.py b/qutebrowser/widgets/tabbar.py index ff0edb97b..47b3455fb 100644 --- a/qutebrowser/widgets/tabbar.py +++ b/qutebrowser/widgets/tabbar.py @@ -36,6 +36,8 @@ class TabWidget(QTabWidget): # FIXME there is still some ugly 1px white stripe from somewhere if we do # background-color: grey for QTabBar... + # pylint: disable=unused-argument + STYLESHEET = """ QTabWidget::pane {{ position: absolute; @@ -100,6 +102,5 @@ class TabWidget(QTabWidget): @pyqtSlot(str, str) def on_config_changed(self, section, option): """Update attributes when config changed.""" - # pylint: disable=unused-argument if section == 'tabbar': self._init_config()