Skip to content

Commit c3214b0

Browse files
committed
Add the error code about windows_flag's type ignore
This 'type ignore' is because mypy will raise an error on Linux as the subprocess module does not have a CREATE_NO_WINDOW attribute defined.
1 parent d2ad317 commit c3214b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp_mypy/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class WindowsFlag(TypedDict, total=False):
6969

7070

7171
windows_flag: WindowsFlag = (
72-
{"creationflags": subprocess.CREATE_NO_WINDOW} if os.name == "nt" else {} # type: ignore
72+
{"creationflags": subprocess.CREATE_NO_WINDOW} if os.name == "nt" else {} # type: ignore[attr-defined]
7373
)
7474

7575

0 commit comments

Comments
 (0)