Skip to content

Commit f51bc8d

Browse files
committed
add support for python 3.7
1 parent 1f0fbd2 commit f51bc8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/nylas/schemas.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Field,
77
)
88
from typing import (
9+
List,
910
Optional,
1011
)
1112

@@ -47,7 +48,7 @@ class MailRecipient(BaseModel):
4748

4849

4950
class SendEmailSchema(BaseModel):
50-
to: list[MailRecipient] = Field(
51+
to: List[MailRecipient] = Field(
5152
...,
5253
description="List of recipient email addresses",
5354
example=[{"name": "Receiver name", "email": "[email protected]"}],
@@ -66,7 +67,7 @@ class SendEmailSchema(BaseModel):
6667
description="Email message body",
6768
example="This is a test email message.",
6869
)
69-
attachments: Optional[list[str]] = Field(
70+
attachments: Optional[List[str]] = Field(
7071
[],
7172
description="List of attachment URLs",
7273
example=["https://example.com/attachment1.pdf"],

0 commit comments

Comments
 (0)