lint: Fix flake8 docstring issues
This commit is contained in:
parent
f021abd980
commit
52f2b430e9
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
"""Rewrite PyQt enums based on rewrite_find_enums.py output."""
|
||||
|
||||
|
||||
import pathlib
|
||||
import sys
|
||||
import re
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
"""Find all PyQt enum instances."""
|
||||
|
||||
|
||||
import pathlib
|
||||
import ast
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
"""Find all PyQt flag instances."""
|
||||
|
||||
import pathlib
|
||||
import ast
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue