lint: Fix flake8 docstring issues

This commit is contained in:
Florian Bruhin 2022-05-17 13:22:13 +02:00
parent f021abd980
commit 52f2b430e9
6 changed files with 16 additions and 4 deletions

View File

@ -70,6 +70,8 @@ class CertificateErrorWrapper(usertypes.AbstractCertificateErrorWrapper):
class CertificateErrorWrapperQt5(CertificateErrorWrapper):
"""QWebEngineCertificateError handling for Qt 5 API."""
def _validate(self) -> None:
assert machinery.IS_QT5
@ -90,6 +92,8 @@ class CertificateErrorWrapperQt5(CertificateErrorWrapper):
class CertificateErrorWrapperQt6(CertificateErrorWrapper):
"""QWebEngineCertificateError handling for Qt 6 API."""
def _validate(self) -> None:
assert machinery.IS_QT6

View File

@ -1547,9 +1547,7 @@ class WebEngineTab(browsertab.AbstractTab):
@pyqtSlot(int)
def _on_load_progress(self, perc: int) -> None:
"""QtWebEngine-specific loadProgress workarounds.
"""
"""QtWebEngine-specific loadProgress workarounds."""
super()._on_load_progress(perc)
if (
self._needs_qtbug65223_workaround and

View File

@ -380,9 +380,11 @@ class _BackendProblemChecker:
sys.exit(usertypes.Exit.err_init)
def _check_software_rendering(self) -> None:
"""WORKAROUND for https://bugreports.qt.io/browse/QTBUG-103372
"""Avoid crashing software rendering settings.
WORKAROUND for https://bugreports.qt.io/browse/QTBUG-103372
Hopefully fixed with Qt 6.3.1.
FIXME:qt6 update
"""
self._assert_backend(usertypes.Backend.QtWebEngine)

View File

@ -1,3 +1,6 @@
"""Rewrite PyQt enums based on rewrite_find_enums.py output."""
import pathlib
import sys
import re

View File

@ -1,3 +1,6 @@
"""Find all PyQt enum instances."""
import pathlib
import ast

View File

@ -1,3 +1,5 @@
"""Find all PyQt flag instances."""
import pathlib
import ast