Skip to content

Commit 8c4fdfd

Browse files
committed
fix: Python 3.8 compatibility for type hints
Changed `tuple[...]` to `Tuple[...]` in type hints for Python 3.8 compatibility. The lowercase generic syntax was introduced in Python 3.9 (PEP 585), but our CI runs on Python 3.8. Changes: - Added `Tuple` to typing imports - Changed return type annotation from `tuple[...]` to `Tuple[...]` Fixes CI test collection error: TypeError: 'type' object is not subscriptable
1 parent e49ce3d commit 8c4fdfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/harmonizer/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import json
2929
import os
3030
import sys
31-
from typing import Dict, List
31+
from typing import Dict, List, Tuple
3232

3333
# --- COMPONENT IMPORTS ---
3434
# This script assumes the following two files are in the
@@ -472,7 +472,7 @@ def validate_cli_arguments(args: argparse.Namespace) -> List[str]:
472472

473473
def execute_analysis(
474474
harmonizer: PythonCodeHarmonizer, file_paths: List[str], output_format: str
475-
) -> tuple[Dict[str, Dict[str, Dict]], int]:
475+
) -> Tuple[Dict[str, Dict[str, Dict]], int]:
476476
"""
477477
Executes the analysis pipeline.
478478
Pure Power domain: orchestrating the actual work.

0 commit comments

Comments
 (0)