mirror of https://github.com/Textualize/rich.git
ignore windows type issue
This commit is contained in:
parent
20084da4f8
commit
05bf78b17a
|
@ -53,7 +53,7 @@ else:
|
||||||
vt = bool(result and console_mode.value & ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
vt = bool(result and console_mode.value & ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
||||||
truecolor = False
|
truecolor = False
|
||||||
if vt:
|
if vt:
|
||||||
win_version = sys.getwindowsversion()
|
win_version = sys.getwindowsversion() # type: ignore
|
||||||
truecolor = win_version.major > 10 or (
|
truecolor = win_version.major > 10 or (
|
||||||
win_version.major == 10 and win_version.build >= 15063
|
win_version.major == 10 and win_version.build >= 15063
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue