ignore type warnings

This commit is contained in:
Sina Atalay 2023-10-13 22:42:16 +02:00
parent fde1401588
commit 1c531e6f76
1 changed files with 6 additions and 6 deletions

View File

@ -19,14 +19,14 @@ class LoggingFormatter(logging.Formatter):
bold_red = "\x1b[31;1m" # critical level
reset = "\x1b[0m"
format = "%(levelname)s | %(message)s"
format = "%(levelname)s | %(message)s" # type: ignore
FORMATS = {
logging.DEBUG: grey + format + reset,
logging.INFO: white + format + reset,
logging.WARNING: yellow + format + reset,
logging.ERROR: red + format + reset,
logging.CRITICAL: bold_red + format + reset,
logging.DEBUG: grey + format + reset, # type: ignore
logging.INFO: white + format + reset, # type: ignore
logging.WARNING: yellow + format + reset, # type: ignore
logging.ERROR: red + format + reset, # type: ignore
logging.CRITICAL: bold_red + format + reset, # type: ignore
}
def format(self, record):