Fix or ignore MyPy issues in PyQt desktop GUI code

- Remove unneeded type ignore for mps with the latest mypy
- Stop excluding PyQT desktop GUI code from MyPy checks
- Do not warn about unused ignores. Some issue with mypy giving
  different errors in different environments (venv, system and pre-commit)
This commit is contained in:
Debanjum Singh Solanky
2023-02-17 16:11:17 -06:00
parent fd0a2f55f8
commit 36be3c4b8f
5 changed files with 18 additions and 23 deletions

View File

@@ -87,12 +87,7 @@ install_types = true
ignore_missing_imports = true
non_interactive = true
show_error_codes = true
warn_unused_ignores = true
exclude = [
"src/khoj/interface/desktop/main_window.py",
"src/khoj/interface/desktop/file_browser.py",
"src/khoj/interface/desktop/system_tray.py",
]
warn_unused_ignores = false
[tool.black]
line-length = 120