Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix(utils): remove unnecessary Type fallback and keep explicit typing import

KaifAhmad1436bcc535279
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: