Skip to content

Commit 00913a4

Browse files
committed
LCORE-1449: Use proper type specification in LCORE sources
1 parent b9e971b commit 00913a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/utils/types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Common types for the project."""
22

3-
from typing import Annotated, Any, Literal, Optional, TypeAlias
3+
from typing import Annotated, Any, Literal, Optional
44

55
from llama_stack_api import ImageContentItem, TextContentItem
66
from llama_stack_api.openai_responses import (
@@ -131,7 +131,7 @@ class ShieldModerationBlocked(BaseModel):
131131
Field(discriminator="decision"),
132132
]
133133

134-
IncludeParameter: TypeAlias = Literal[
134+
type IncludeParameter = Literal[
135135
"web_search_call.action.sources",
136136
"code_interpreter_call.outputs",
137137
"computer_call_output.output.image_url",
@@ -141,7 +141,7 @@ class ShieldModerationBlocked(BaseModel):
141141
"reasoning.encrypted_content",
142142
]
143143

144-
ResponseItem: TypeAlias = (
144+
type ResponseItem = (
145145
ResponseMessage
146146
| WebSearchToolCall
147147
| FileSearchToolCall
@@ -153,7 +153,7 @@ class ShieldModerationBlocked(BaseModel):
153153
| McpApprovalResponse
154154
)
155155

156-
ResponseInput: TypeAlias = str | list[ResponseItem]
156+
type ResponseInput = str | list[ResponseItem]
157157

158158

159159
class ResponsesApiParams(BaseModel):

0 commit comments

Comments
 (0)