Commit c0b58e7
committed
Guard the Windows console call with sys.platform
Switch the platform check from os.name to sys.platform so the type checker
recognises the block as Windows-only and skips it on Linux, while keeping the
direct ctypes.windll call the linter prefers. Lint and type check now both pass
on every platform.1 parent 21a540d commit c0b58e7
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments