Fix pylint without QtWebEngine available
This commit is contained in:
parent
fea25d715c
commit
40f0aa0023
@ -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,
|
||||||
|
@ -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
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user