Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
fix(utils): harden Type availability in helpers (refs #352)
KaifAhmad149582ad89a25
diff --git a/semantica/utils/helpers.py b/semantica/utils/helpers.pyindex 3a23f81b..d09e27a0 100644--- a/semantica/utils/helpers.py+++ b/semantica/utils/helpers.py@@ -65,7 +65,14 @@ import osimport refrom datetime import datetime, timezonefrom pathlib import Path-from typing import Any, Dict, List, Optional, Tuple, Type, Union+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 = typedef format_data(data: Any, format_type: str = "json") -> str: