pylint: completely disable unnecessary-lambda
This commit is contained in:
parent
af9e4ae072
commit
7dfd7d018b
@ -18,7 +18,8 @@ disable=no-self-use,
|
|||||||
cyclic-import,
|
cyclic-import,
|
||||||
bad-option-value,
|
bad-option-value,
|
||||||
bad-continuation,
|
bad-continuation,
|
||||||
too-many-instance-attributes
|
too-many-instance-attributes,
|
||||||
|
unnecessary-lambda
|
||||||
|
|
||||||
[BASIC]
|
[BASIC]
|
||||||
module-rgx=[a-z_]*$
|
module-rgx=[a-z_]*$
|
||||||
|
@ -24,8 +24,6 @@ Module attributes:
|
|||||||
settings: The global QWebSettings singleton instance.
|
settings: The global QWebSettings singleton instance.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# pylint: disable=unnecessary-lambda
|
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSlot
|
from PyQt5.QtCore import pyqtSlot
|
||||||
from PyQt5.QtWebKit import QWebSettings
|
from PyQt5.QtWebKit import QWebSettings
|
||||||
from PyQt5.QtCore import QStandardPaths
|
from PyQt5.QtCore import QStandardPaths
|
||||||
|
@ -75,7 +75,7 @@ class SpecialNetworkReply(QNetworkReply):
|
|||||||
self.setAttribute(QNetworkRequest.HttpStatusCodeAttribute, 200)
|
self.setAttribute(QNetworkRequest.HttpStatusCodeAttribute, 200)
|
||||||
self.setAttribute(QNetworkRequest.HttpReasonPhraseAttribute, 'OK')
|
self.setAttribute(QNetworkRequest.HttpReasonPhraseAttribute, 'OK')
|
||||||
# For some reason, a segfault will be triggered if these lambdas aren't
|
# For some reason, a segfault will be triggered if these lambdas aren't
|
||||||
# there. pylint: disable=unnecessary-lambda
|
# there.
|
||||||
QTimer.singleShot(0, lambda: self.metaDataChanged.emit())
|
QTimer.singleShot(0, lambda: self.metaDataChanged.emit())
|
||||||
QTimer.singleShot(0, lambda: self.readyRead.emit())
|
QTimer.singleShot(0, lambda: self.readyRead.emit())
|
||||||
QTimer.singleShot(0, lambda: self.finished.emit())
|
QTimer.singleShot(0, lambda: self.finished.emit())
|
||||||
@ -127,7 +127,7 @@ class ErrorNetworkReply(QNetworkReply):
|
|||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setError(error, errorstring)
|
self.setError(error, errorstring)
|
||||||
# For some reason, a segfault will be triggered if these lambdas aren't
|
# For some reason, a segfault will be triggered if these lambdas aren't
|
||||||
# there. pylint: disable=unnecessary-lambda
|
# there.
|
||||||
QTimer.singleShot(0, lambda: self.error.emit(error))
|
QTimer.singleShot(0, lambda: self.error.emit(error))
|
||||||
QTimer.singleShot(0, lambda: self.finished.emit())
|
QTimer.singleShot(0, lambda: self.finished.emit())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user