From 989244ce2aa861b413b242c9fb36e2cae9a29130 Mon Sep 17 00:00:00 2001 From: shivamjohri247 Date: Mon, 15 Dec 2025 17:11:15 +0530 Subject: [PATCH] fix: resolve ruff lint errors - Remove pd.DataFrame type hint (pd not imported at module level) - Rename ambiguous variable 'l' to 'line' --- agent/component/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/component/message.py b/agent/component/message.py index e1bb01aac..5f046e388 100644 --- a/agent/component/message.py +++ b/agent/component/message.py @@ -202,7 +202,7 @@ class Message(ComponentBase): def thoughts(self) -> str: return "" - def _parse_markdown_table_lines(self, table_lines: list) -> "pd.DataFrame": + def _parse_markdown_table_lines(self, table_lines: list): """ Parse a list of markdown table lines into a pandas DataFrame. @@ -284,7 +284,7 @@ class Message(ComponentBase): if isinstance(content, str): lines = content.strip().split('\n') - logging.info(f"XLSX Parser: Total lines={len(lines)}, lines starting with '|': {sum(1 for l in lines if l.strip().startswith('|'))}") + logging.info(f"XLSX Parser: Total lines={len(lines)}, lines starting with '|': {sum(1 for line in lines if line.strip().startswith('|'))}") current_table_lines = [] current_table_title = None pending_title = None