ignore windows type issue

This commit is contained in:
Will McGugan 2020-10-12 16:57:43 +01:00
parent 20084da4f8
commit 05bf78b17a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ else:
vt = bool(result and console_mode.value & ENABLE_VIRTUAL_TERMINAL_PROCESSING)
truecolor = False
if vt:
win_version = sys.getwindowsversion()
win_version = sys.getwindowsversion() # type: ignore
truecolor = win_version.major > 10 or (
win_version.major == 10 and win_version.build >= 15063
)