Skip to content

Commit d2e80ca

Browse files
authored
Merge pull request lightspeed-core#2406 from tisnik/lcore-3476-do-not-use-type-alias
LCORE-3476: Do not use type alias
2 parents 11c99e0 + 044076e commit d2e80ca

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/utils/agents/error_handler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Error mapping for agent inference failures to structured API error responses."""
22

3-
from typing import TypeAlias
4-
53
from ogx_client import APIConnectionError, APIStatusError
64
from pydantic_ai.exceptions import (
75
AgentRunError,
@@ -26,7 +24,7 @@
2624
is_context_length_error,
2725
)
2826

29-
AgentInferenceError: TypeAlias = (
27+
type AgentInferenceError = (
3028
AgentRunError | APIStatusError | APIConnectionError | RuntimeError
3129
)
3230

0 commit comments

Comments
 (0)