qt6 mypy: Fix lint

This commit is contained in:
Florian Bruhin 2023-06-30 00:29:16 +02:00
parent 9637b8b4fa
commit a6d4227578
2 changed files with 5 additions and 1 deletions

View File

@ -268,6 +268,7 @@ def check_spelling(args: argparse.Namespace) -> Optional[bool]:
pathlib.Path('scripts', 'dev', 'misc_checks.py'),
pathlib.Path('scripts', 'dev', 'enums.txt'),
pathlib.Path('qutebrowser', '3rdparty', 'pdfjs'),
pathlib.Path('qutebrowser', 'qt', '_core_pyqtproperty.py'),
hint_data / 'ace' / 'ace.js',
hint_data / 'bootstrap' / 'bootstrap.css',
]

View File

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