summaryrefslogtreecommitdiff
path: root/qutebrowser/api
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-12-10 16:05:17 +0100
committerFlorian Bruhin <me@the-compiler.org>2018-12-10 16:33:24 +0100
commit35a3fe029d381053c12b44b5f1d111cfabf3f047 (patch)
treeff1d3dc4063254e0d46718bed9715aa413870637 /qutebrowser/api
parent4e99caafb9f9772155bbf5de18e8bad60b2127e0 (diff)
downloadqutebrowser-35a3fe029d381053c12b44b5f1d111cfabf3f047.tar.gz
qutebrowser-35a3fe029d381053c12b44b5f1d111cfabf3f047.zip
Fix lint
Diffstat (limited to 'qutebrowser/api')
-rw-r--r--qutebrowser/api/downloads.py4
-rw-r--r--qutebrowser/api/hook.py4
-rw-r--r--qutebrowser/api/requests.py5
3 files changed, 7 insertions, 6 deletions
diff --git a/qutebrowser/api/downloads.py b/qutebrowser/api/downloads.py
index f743f5d7a..82c68d0bd 100644
--- a/qutebrowser/api/downloads.py
+++ b/qutebrowser/api/downloads.py
@@ -18,6 +18,9 @@
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
+"""APIs related to downloading files."""
+
+
import io
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, QUrl
@@ -33,6 +36,7 @@ class TempDownload(QObject):
finished = pyqtSignal()
def __init__(self, item: qtnetworkdownloads.DownloadItem) -> None:
+ super().__init__()
self._item = item
self._item.finished.connect(self._on_download_finished)
self.successful = False
diff --git a/qutebrowser/api/hook.py b/qutebrowser/api/hook.py
index bd8e2a635..3f06121da 100644
--- a/qutebrowser/api/hook.py
+++ b/qutebrowser/api/hook.py
@@ -17,6 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
+# pylint: disable=invalid-name
+
"""Hooks for extensions."""
import importlib
@@ -32,7 +34,7 @@ def _add_module_info(func: typing.Callable) -> loader.ModuleInfo:
return loader.add_module_info(module)
-class init: # noqa: N801,N806 pylint: disable=invalid-name
+class init:
"""Decorator to mark a function to run when initializing."""
diff --git a/qutebrowser/api/requests.py b/qutebrowser/api/requests.py
index 990faec88..5c23418b4 100644
--- a/qutebrowser/api/requests.py
+++ b/qutebrowser/api/requests.py
@@ -19,11 +19,6 @@
"""APIs related to intercepting/blocking requests."""
-import typing
-
-import attr
-from PyQt5.QtCore import QUrl
-
from qutebrowser.extensions import requests
# pylint: disable=unused-import
from qutebrowser.extensions.requests import Request