qt6 mypy: Fix lint
This commit is contained in:
parent
43fc49e5ad
commit
4cf2eea580
|
|
@ -44,7 +44,6 @@ except ImportError:
|
|||
|
||||
if TYPE_CHECKING:
|
||||
from qutebrowser.config import config as configmodule
|
||||
from typing import TextIO
|
||||
|
||||
_log_inited = False
|
||||
_args = None
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@
|
|||
"PyQt-builder": "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",
|
||||
"PyQt6-stubs": "https://github.com/python-qt-tools/PyQt6-stubs/commits/main",
|
||||
"sip": "https://www.riverbankcomputing.com/news",
|
||||
"PyQt6": "https://www.riverbankcomputing.com/news",
|
||||
"PyQt6-Qt6": "https://www.riverbankcomputing.com/news",
|
||||
|
|
|
|||
|
|
@ -94,6 +94,9 @@ def check_changelog_urls(_args: argparse.Namespace = None) -> bool:
|
|||
req, _version = recompile_requirements.parse_versioned_line(line)
|
||||
if req.startswith('./'):
|
||||
continue
|
||||
if " @ " in req: # vcs URL
|
||||
req = req.split(" @ ")[0]
|
||||
|
||||
all_requirements.add(req)
|
||||
if req not in recompile_requirements.CHANGELOG_URLS:
|
||||
missing.add(req)
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ def run(files):
|
|||
vult = vulture.Vulture(verbose=False)
|
||||
vult.scavenge(
|
||||
files + [whitelist_file.name],
|
||||
exclude="qutebrowser/qt/_core_pyqtproperty.py",
|
||||
exclude=["qutebrowser/qt/_core_pyqtproperty.py"],
|
||||
)
|
||||
|
||||
os.remove(whitelist_file.name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue