Fix lint
This commit is contained in:
parent
70fb9bfd51
commit
e4b0b7fffd
@ -226,7 +226,6 @@ class AbstractCaret(QObject):
|
||||
self._win_id = win_id
|
||||
self._widget = None
|
||||
self.selection_enabled = False
|
||||
# pylint: disable=protected-access
|
||||
modeman.entered.connect(self._on_mode_entered)
|
||||
modeman.left.connect(self._on_mode_left)
|
||||
|
||||
|
@ -31,7 +31,8 @@ from qutebrowser.browser.webengine import webview
|
||||
from qutebrowser.utils import usertypes, qtutils
|
||||
|
||||
|
||||
## FIXME:qtwebengine add stubs for abstract things which aren't implemented yet.
|
||||
## FIXME:qtwebengine add stubs for abstract things which aren't implemented
|
||||
## yet.
|
||||
## pylint: disable=abstract-method
|
||||
|
||||
|
||||
@ -79,7 +80,8 @@ class WebEngineScroller(tab.AbstractScroller):
|
||||
release_evt = QKeyEvent(QEvent.KeyRelease, key, Qt.NoModifier, 0, 0, 0)
|
||||
recipient = self._widget.focusProxy()
|
||||
for _ in range(count):
|
||||
# If we get a segfault here, we might want to try sendEvent instead.
|
||||
# If we get a segfault here, we might want to try sendEvent
|
||||
# instead.
|
||||
QApplication.postEvent(recipient, press_evt)
|
||||
QApplication.postEvent(recipient, release_evt)
|
||||
|
||||
|
@ -93,6 +93,6 @@ class TestTabData:
|
||||
def test_unknown_attr(self):
|
||||
data = tab.TabData()
|
||||
with pytest.raises(AttributeError):
|
||||
data.bar = 42
|
||||
data.bar = 42 # pylint: disable=assigning-non-slot
|
||||
with pytest.raises(AttributeError):
|
||||
data.bar # pylint: disable=pointless-statement
|
||||
|
Loading…
Reference in New Issue
Block a user