Fix pylint without QtWebEngine available

This commit is contained in:
Florian Bruhin 2016-07-07 14:41:39 +02:00
parent fea25d715c
commit 40f0aa0023
3 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,7 @@ disable=no-self-use,
fixme, fixme,
global-statement, global-statement,
locally-disabled, locally-disabled,
locally-enabled,
too-many-ancestors, too-many-ancestors,
too-few-public-methods, too-few-public-methods,
too-many-public-methods, too-many-public-methods,

View File

@ -22,7 +22,9 @@
from PyQt5.QtCore import pyqtSlot, Qt, QEvent from PyQt5.QtCore import pyqtSlot, Qt, QEvent
from PyQt5.QtGui import QKeyEvent from PyQt5.QtGui import QKeyEvent
from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QApplication
# pylint: disable=no-name-in-module,import-error,useless-suppression
from PyQt5.QtWebEngineWidgets import QWebEnginePage from PyQt5.QtWebEngineWidgets import QWebEnginePage
# pylint: enable=no-name-in-module,import-error,useless-suppression
from qutebrowser.browser import tab from qutebrowser.browser import tab
from qutebrowser.browser.webengine import webview from qutebrowser.browser.webengine import webview

View File

@ -21,7 +21,9 @@
from PyQt5.QtCore import pyqtSignal, Qt, QPoint from PyQt5.QtCore import pyqtSignal, Qt, QPoint
# pylint: disable=no-name-in-module,import-error,useless-suppression
from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtWebEngineWidgets import QWebEngineView
# pylint: enable=no-name-in-module,import-error,useless-suppression
class WebEngineView(QWebEngineView): class WebEngineView(QWebEngineView):