Skip to content

Commit 2aaa039

Browse files
authored
Merge pull request lightspeed-core#2405 from tisnik/lcore-3475-do-not-use-type-alias
LCORE-3475: Do not use type alias
2 parents f32e625 + a31ec81 commit 2aaa039

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/models/common/agents/stream_payloads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Typed JSON bodies for SSE streaming events."""
22

33
import json
4-
from typing import Annotated, Literal, Optional, Self, TypeAlias
4+
from typing import Annotated, Literal, Optional, Self
55

66
from pydantic import BaseModel, ConfigDict, Field
77

@@ -257,7 +257,7 @@ def serialize_text(self) -> str:
257257
return "[Tool Result]\n"
258258

259259

260-
StreamEventPayload: TypeAlias = Annotated[
260+
type StreamEventPayload = Annotated[
261261
TokenStreamPayload
262262
| TurnCompleteStreamPayload
263263
| ToolCallStreamPayload

0 commit comments

Comments
 (0)