Skip to content

Commit 6ea3f5c

Browse files
committed
fix: Typing fixes
1 parent d30ef88 commit 6ea3f5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asknews_sdk/dto/alert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from datetime import datetime
2-
from typing import Any, Dict, List, Literal, Optional
2+
from typing import Any, Dict, List, Literal, Optional, Union
33
from uuid import UUID
44

55
from pydantic import BaseModel, EmailStr, Field, RootModel
@@ -93,7 +93,7 @@ class GoogleDocsAction(BaseModel):
9393

9494

9595
Trigger = Annotated[
96-
ReportAction | WebhookAction | EmailAction | GoogleDocsAction,
96+
Union[ReportAction, WebhookAction, EmailAction, GoogleDocsAction],
9797
Field(discriminator="action"),
9898
]
9999

0 commit comments

Comments
 (0)