From 8f7224867c8e8b626baa807957cc1d4de3787ae4 Mon Sep 17 00:00:00 2001 From: dmeenaarmorcode Date: Mon, 11 Aug 2025 20:27:30 +0530 Subject: [PATCH] Fix type annotations for Python 3.8 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed dict[str, Any] to Dict[str, Any] on line 554 - Changed tuple[...] to Tuple[...] on line 587 - These lowercase generic types only work in Python 3.9+ - Using capitalized versions from typing module ensures compatibility with Python 3.6-3.8 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- web-agent/app/worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-agent/app/worker.py b/web-agent/app/worker.py index 210144b..604d75e 100644 --- a/web-agent/app/worker.py +++ b/web-agent/app/worker.py @@ -551,7 +551,7 @@ def _clean_temp_output_files() -> None: except Exception as e: print("Error cleaning temp output files") -def update_agent_config(global_config: dict[str, Any]) -> None: +def update_agent_config(global_config: Dict[str, Any]) -> None: global config_dict, rate_limiter if global_config.get("debugMode") is not None: if global_config.get("debugMode", False): @@ -584,7 +584,7 @@ def generate_unique_id(): -def get_initial_config(parser) -> tuple[dict[str, Union[Union[bool, None, str, int], Any]], str, bool]: +def get_initial_config(parser) -> Tuple[Dict[str, Union[Union[bool, None, str, int], Any]], str, bool]: global rate_limiter config = { "api_key": None, # Optional[str]