We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99db91 commit d2ad317Copy full SHA for d2ad317
pylsp_mypy/plugin.py
@@ -18,7 +18,7 @@
18
import tempfile
19
from configparser import ConfigParser
20
from pathlib import Path
21
-from typing import IO, Any, Optional
+from typing import IO, Any, Optional, TypedDict
22
23
try:
24
import tomllib
@@ -64,7 +64,11 @@
64
# This flag prevents that.
65
# This flag is new in python 3.7
66
# This flag only exists on Windows
67
-windows_flag: dict[str, int] = (
+class WindowsFlag(TypedDict, total=False):
68
+ creationflags: int
69
+
70
71
+windows_flag: WindowsFlag = (
72
{"creationflags": subprocess.CREATE_NO_WINDOW} if os.name == "nt" else {} # type: ignore
73
)
74
0 commit comments