fix mypy config
This commit is contained in:
@@ -9,6 +9,9 @@ _all_ = [
|
||||
"PySide6_Addons>=6.10.2",
|
||||
"PySide6_Essentials>=6.10.2",
|
||||
"shiboken6>=6.10.2",
|
||||
"librt>=0.8.1",
|
||||
"mypy>=1.19.1",
|
||||
"mypy_extensions>=1.1.0",
|
||||
]
|
||||
|
||||
windows = [
|
||||
|
||||
@@ -8,7 +8,3 @@ dependencies = [
|
||||
"pyside6>=6.10.2",
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
[[tool.mypy.overrides]]
|
||||
module = ["win11toast.*"]
|
||||
follow_untyped_imports = true
|
||||
|
||||
@@ -5,3 +5,6 @@ PySide6==6.10.2
|
||||
PySide6_Addons==6.10.2
|
||||
PySide6_Essentials==6.10.2
|
||||
shiboken6==6.10.2
|
||||
librt==0.8.1
|
||||
mypy==1.19.1
|
||||
mypy_extensions==1.1.0
|
||||
|
||||
@@ -16,7 +16,7 @@ if sys.platform.startswith('linux'):
|
||||
os.environ["QT_QPA_PLATFORM"] = "xcb"
|
||||
|
||||
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
|
||||
from fake_patch_notes import patch_note
|
||||
|
||||
Reference in New Issue
Block a user