From 436bcc535279a9a6ec963e09ed9bb1b0aa84e8ff Mon Sep 17 00:00:00 2001 From: KaifAhmad1 Date: Tue, 3 Mar 2026 17:18:20 +0530 Subject: [PATCH] fix(utils): remove unnecessary Type fallback and keep explicit typing import --- semantica/utils/helpers.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/semantica/utils/helpers.py b/semantica/utils/helpers.py index d09e27a0..3a23f81b 100644 --- a/semantica/utils/helpers.py +++ b/semantica/utils/helpers.py @@ -65,14 +65,7 @@ import os import re from datetime import datetime, timezone from pathlib import Path -from typing import Any, Dict, List, Optional, Tuple, Union - -# Defensive fallback: keep `Type` defined for environments or refactors -# where typing imports may drift and runtime annotations still reference it. -try: - from typing import Type -except Exception: # pragma: no cover - Type = type +from typing import Any, Dict, List, Optional, Tuple, Type, Union def format_data(data: Any, format_type: str = "json") -> str: