From b63fe14051a831947a0f38f613d3a9ba502459f5 Mon Sep 17 00:00:00 2001 From: saqlain2109 Date: Sat, 28 Mar 2026 16:49:19 +0530 Subject: [PATCH] Fix LOGGER type issue in log.py This PR fixes the LOGGER type issue in log.py by explicitly defining its type as logging.Logger. Fixes #2870 Signed-off-by: saqlain2109 --- cve_bin_tool/log.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cve_bin_tool/log.py b/cve_bin_tool/log.py index 82cdfe8545..6027046d7f 100644 --- a/cve_bin_tool/log.py +++ b/cve_bin_tool/log.py @@ -4,6 +4,8 @@ """Logging""" import logging +from typing import Optional + from rich.logging import RichHandler @@ -42,5 +44,6 @@ def filter(self, record): # Add the handlers to the root logger root_logger = logging.getLogger() -LOGGER = logging.getLogger(__package__) +LOGGER: Optional[logging.Logger] = logging.getLogger(__package__) LOGGER.setLevel(logging.INFO) +