This commit is contained in:
Will McGugan 2020-07-07 15:36:55 +01:00
parent fb158f81a2
commit e0d1c6315a
1 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@ from dataclasses import dataclass
class WindowsConsoleFeatures:
"""Windows features available."""
vt: bool
truecolor: bool
vt: bool = False
truecolor: bool = False
try:
@ -16,7 +16,7 @@ try:
from ctypes import wintypes
from ctypes import LibraryLoader
windll = LibraryLoader(ctypes.WinDLL)
windll = LibraryLoader(ctypes.WinDLL) # type: ignore
except (AttributeError, ImportError):
# Fallback if we can't load the Windows DLL