Fix lint
This commit is contained in:
parent
5f5f202098
commit
89650d89f1
@ -1,6 +1,6 @@
|
|||||||
# This file is automatically generated by scripts/dev/recompile_requirements.py
|
# This file is automatically generated by scripts/dev/recompile_requirements.py
|
||||||
|
|
||||||
colorama==0.4.0
|
colorama==0.4.1
|
||||||
cssutils==1.0.2
|
cssutils==1.0.2
|
||||||
hunter==2.1.0
|
hunter==2.1.0
|
||||||
Pympler==0.6
|
Pympler==0.6
|
||||||
|
@ -44,7 +44,8 @@ from qutebrowser.browser import mouse, hints, webelem
|
|||||||
from qutebrowser.qt import sip
|
from qutebrowser.qt import sip
|
||||||
MYPY = False
|
MYPY = False
|
||||||
if MYPY:
|
if MYPY:
|
||||||
# pylint: disable=unused-import
|
# pylint can't interpret type comments with Python 3.7
|
||||||
|
# pylint: disable=unused-import,useless-suppression
|
||||||
from qutebrowser.browser.inspector import AbstractWebInspector
|
from qutebrowser.browser.inspector import AbstractWebInspector
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,12 @@ from PyQt5.QtCore import (pyqtSlot, pyqtSignal, QCoreApplication, QUrl,
|
|||||||
from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkReply, QSslSocket
|
from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkReply, QSslSocket
|
||||||
|
|
||||||
from qutebrowser.config import config
|
from qutebrowser.config import config
|
||||||
from qutebrowser.mainwindow import prompt # pylint: disable=unused-import
|
|
||||||
|
MYPY = False
|
||||||
|
if MYPY:
|
||||||
|
# pylint can't interpret type comments with Python 3.7
|
||||||
|
# pylint: disable=unused-import,useless-suppression
|
||||||
|
from qutebrowser.mainwindow import prompt
|
||||||
from qutebrowser.utils import (message, log, usertypes, utils, objreg,
|
from qutebrowser.utils import (message, log, usertypes, utils, objreg,
|
||||||
urlutils, debug)
|
urlutils, debug)
|
||||||
from qutebrowser.browser import shared
|
from qutebrowser.browser import shared
|
||||||
|
@ -42,8 +42,6 @@ class Sentinel:
|
|||||||
|
|
||||||
"""Sentinel value for default argument."""
|
"""Sentinel value for default argument."""
|
||||||
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
default = Sentinel()
|
default = Sentinel()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user