From e0d1c6315a75143b736767ff185f281661ab98a9 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 7 Jul 2020 15:36:55 +0100 Subject: [PATCH] type fix --- rich/_windows.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rich/_windows.py b/rich/_windows.py index ef2e9204..e85f4c47 100644 --- a/rich/_windows.py +++ b/rich/_windows.py @@ -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