Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrodamascena committed Aug 15, 2024
1 parent f1ad77d commit b443cdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/e2e/parser/handlers/handler_with_union_tag.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import annotations

from typing import Annotated, Literal, Union
from typing import Literal

from pydantic import BaseModel, Field
from typing_extensions import Annotated

from aws_lambda_powertools.utilities.parser import event_parser
from aws_lambda_powertools.utilities.typing import LambdaContext
Expand All @@ -24,7 +25,7 @@ class PartialFailureCallback(BaseModel):
error_msg: str


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


@event_parser
Expand Down

0 comments on commit b443cdd

Please sign in to comment.