qt6 mypy: Fix lint

This commit is contained in:
Florian Bruhin 2023-06-30 11:55:29 +02:00
parent 43fc49e5ad
commit 4cf2eea580
4 changed files with 5 additions and 2 deletions

View File

@ -44,7 +44,6 @@ except ImportError:
if TYPE_CHECKING: if TYPE_CHECKING:
from qutebrowser.config import config as configmodule from qutebrowser.config import config as configmodule
from typing import TextIO
_log_inited = False _log_inited = False
_args = None _args = None

View File

@ -104,6 +104,7 @@
"PyQt-builder": "https://www.riverbankcomputing.com/news", "PyQt-builder": "https://www.riverbankcomputing.com/news",
"PyQt5-sip": "https://www.riverbankcomputing.com/news", "PyQt5-sip": "https://www.riverbankcomputing.com/news",
"PyQt5-stubs": "https://github.com/python-qt-tools/PyQt5-stubs/blob/master/CHANGELOG.md", "PyQt5-stubs": "https://github.com/python-qt-tools/PyQt5-stubs/blob/master/CHANGELOG.md",
"PyQt6-stubs": "https://github.com/python-qt-tools/PyQt6-stubs/commits/main",
"sip": "https://www.riverbankcomputing.com/news", "sip": "https://www.riverbankcomputing.com/news",
"PyQt6": "https://www.riverbankcomputing.com/news", "PyQt6": "https://www.riverbankcomputing.com/news",
"PyQt6-Qt6": "https://www.riverbankcomputing.com/news", "PyQt6-Qt6": "https://www.riverbankcomputing.com/news",

View File

@ -94,6 +94,9 @@ def check_changelog_urls(_args: argparse.Namespace = None) -> bool:
req, _version = recompile_requirements.parse_versioned_line(line) req, _version = recompile_requirements.parse_versioned_line(line)
if req.startswith('./'): if req.startswith('./'):
continue continue
if " @ " in req: # vcs URL
req = req.split(" @ ")[0]
all_requirements.add(req) all_requirements.add(req)
if req not in recompile_requirements.CHANGELOG_URLS: if req not in recompile_requirements.CHANGELOG_URLS:
missing.add(req) missing.add(req)

View File

@ -194,7 +194,7 @@ def run(files):
vult = vulture.Vulture(verbose=False) vult = vulture.Vulture(verbose=False)
vult.scavenge( vult.scavenge(
files + [whitelist_file.name], files + [whitelist_file.name],
exclude="qutebrowser/qt/_core_pyqtproperty.py", exclude=["qutebrowser/qt/_core_pyqtproperty.py"],
) )
os.remove(whitelist_file.name) os.remove(whitelist_file.name)