fix mypy config

This commit is contained in:
2026-03-05 14:48:17 +01:00
parent 8e7242937e
commit 42768aa78a
4 changed files with 7 additions and 5 deletions

View File

@@ -9,6 +9,9 @@ _all_ = [
"PySide6_Addons>=6.10.2", "PySide6_Addons>=6.10.2",
"PySide6_Essentials>=6.10.2", "PySide6_Essentials>=6.10.2",
"shiboken6>=6.10.2", "shiboken6>=6.10.2",
"librt>=0.8.1",
"mypy>=1.19.1",
"mypy_extensions>=1.1.0",
] ]
windows = [ windows = [

View File

@@ -8,7 +8,3 @@ dependencies = [
"pyside6>=6.10.2", "pyside6>=6.10.2",
] ]
[tool.mypy]
[[tool.mypy.overrides]]
module = ["win11toast.*"]
follow_untyped_imports = true

View File

@@ -5,3 +5,6 @@ PySide6==6.10.2
PySide6_Addons==6.10.2 PySide6_Addons==6.10.2
PySide6_Essentials==6.10.2 PySide6_Essentials==6.10.2
shiboken6==6.10.2 shiboken6==6.10.2
librt==0.8.1
mypy==1.19.1
mypy_extensions==1.1.0

View File

@@ -16,7 +16,7 @@ if sys.platform.startswith('linux'):
os.environ["QT_QPA_PLATFORM"] = "xcb" os.environ["QT_QPA_PLATFORM"] = "xcb"
if sys.platform=='windows' or sys.platform=="win32": if sys.platform=='windows' or sys.platform=="win32":
from win11toast import toast, notify from win11toast import toast, notify # type: ignore
# Remove this into final release # Remove this into final release
from fake_patch_notes import patch_note from fake_patch_notes import patch_note