pylint: disable=unused-import for typing
Apparently marking modules as used based on type comments doesn't work with Python 3.7: https://github.com/PyCQA/pylint/issues/2345 https://github.com/python/typed_ast/issues/60
This commit is contained in:
parent
251531e6d0
commit
21edeca3e0
@ -38,7 +38,7 @@ matrix:
|
|||||||
# env: TESTENV=py35 OSX=yosemite
|
# env: TESTENV=py35 OSX=yosemite
|
||||||
# osx_image: xcode6.4
|
# osx_image: xcode6.4
|
||||||
- os: linux
|
- os: linux
|
||||||
env: TESTENV=pylint PYTHON=python3.6
|
env: TESTENV=pylint
|
||||||
- os: linux
|
- os: linux
|
||||||
env: TESTENV=flake8
|
env: TESTENV=flake8
|
||||||
- os: linux
|
- os: linux
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
import collections
|
import collections
|
||||||
import html
|
import html
|
||||||
import typing
|
import typing # pylint: disable=unused-import
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from PyQt5.QtCore import (pyqtSlot, pyqtSignal, QCoreApplication, QUrl,
|
from PyQt5.QtCore import (pyqtSlot, pyqtSignal, QCoreApplication, QUrl,
|
||||||
@ -29,7 +29,7 @@ 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
|
from qutebrowser.mainwindow import prompt # pylint: disable=unused-import
|
||||||
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
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"""Contains various command utils and a global command dict."""
|
"""Contains various command utils and a global command dict."""
|
||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
import typing
|
import typing # pylint: disable=unused-import
|
||||||
|
|
||||||
from qutebrowser.utils import qtutils, log
|
from qutebrowser.utils import qtutils, log
|
||||||
from qutebrowser.commands import command, cmdexc
|
from qutebrowser.commands import command, cmdexc
|
||||||
|
@ -33,7 +33,7 @@ from qutebrowser.keyinput import keyutils
|
|||||||
|
|
||||||
MYPY = False
|
MYPY = False
|
||||||
if MYPY:
|
if MYPY:
|
||||||
from qutebrowser.config import configcache
|
from qutebrowser.config import configcache # pylint: disable=unused-import
|
||||||
|
|
||||||
# An easy way to access the config from other code via config.val.foo
|
# An easy way to access the config from other code via config.val.foo
|
||||||
val = typing.cast('ConfigContainer', None)
|
val = typing.cast('ConfigContainer', None)
|
||||||
|
@ -52,7 +52,7 @@ import datetime
|
|||||||
import functools
|
import functools
|
||||||
import operator
|
import operator
|
||||||
import json
|
import json
|
||||||
import typing
|
import typing # pylint: disable=unused-import
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
import yaml
|
import yaml
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
"""Bridge from QWeb(Engine)Settings to our own settings."""
|
"""Bridge from QWeb(Engine)Settings to our own settings."""
|
||||||
|
|
||||||
import typing
|
import typing # pylint: disable=unused-import
|
||||||
|
|
||||||
from PyQt5.QtGui import QFont
|
from PyQt5.QtGui import QFont
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user