mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
fix(utils): remove unnecessary Type fallback and keep explicit typing import
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user