Skip to content

Commit ee4eefd

Browse files
Fix e2e tests
1 parent 265bee5 commit ee4eefd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/parser/handlers/handler_with_union_tag.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Literal
3+
from typing import Literal, Union
44

55
from pydantic import BaseModel, Field
66
from typing_extensions import Annotated
@@ -25,7 +25,7 @@ class PartialFailureCallback(BaseModel):
2525
error_msg: str
2626

2727

28-
OrderCallback = Annotated[SuccessCallback | ErrorCallback | PartialFailureCallback, Field(discriminator="status")]
28+
OrderCallback = Annotated[Union[SuccessCallback, ErrorCallback, PartialFailureCallback], Field(discriminator="status")]
2929

3030

3131
@event_parser

0 commit comments

Comments
 (0)