From dd38dd26e05585fb5aefae51f2bded654b2acbd2 Mon Sep 17 00:00:00 2001 From: mattkram Date: Tue, 27 Aug 2024 15:25:05 -0500 Subject: [PATCH] Ignore type hinting for optional import --- binstar_client/utils/logging_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binstar_client/utils/logging_utils.py b/binstar_client/utils/logging_utils.py index a0a53452..daa8006c 100644 --- a/binstar_client/utils/logging_utils.py +++ b/binstar_client/utils/logging_utils.py @@ -53,7 +53,7 @@ def format(self, record: logging.LogRecord) -> str: try: from rich.logging import RichHandler except (ImportError, ModuleNotFoundError): - RichHandler = None + RichHandler = None # type: ignore def _purge_rich_handler_from_logging_root() -> None: