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:
Florian Bruhin 2018-11-27 09:52:54 +01:00
parent 251531e6d0
commit 21edeca3e0
6 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,7 @@ matrix:
# env: TESTENV=py35 OSX=yosemite
# osx_image: xcode6.4
- os: linux
env: TESTENV=pylint PYTHON=python3.6
env: TESTENV=pylint
- os: linux
env: TESTENV=flake8
- os: linux

View File

@ -21,7 +21,7 @@
import collections
import html
import typing
import typing # pylint: disable=unused-import
import attr
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 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,
urlutils, debug)
from qutebrowser.browser import shared

View File

@ -20,7 +20,7 @@
"""Contains various command utils and a global command dict."""
import inspect
import typing
import typing # pylint: disable=unused-import
from qutebrowser.utils import qtutils, log
from qutebrowser.commands import command, cmdexc

View File

@ -33,7 +33,7 @@ from qutebrowser.keyinput import keyutils
MYPY = False
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
val = typing.cast('ConfigContainer', None)

View File

@ -52,7 +52,7 @@ import datetime
import functools
import operator
import json
import typing
import typing # pylint: disable=unused-import
import attr
import yaml

View File

@ -19,7 +19,7 @@
"""Bridge from QWeb(Engine)Settings to our own settings."""
import typing
import typing # pylint: disable=unused-import
from PyQt5.QtGui import QFont