Skip to content

Commit a57282f

Browse files
authored
CUST-4960 Fixed Participant.email not being optional (#445)
1 parent db9fd38 commit a57282f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ nylas-python Changelog
44
Unreleased
55
----------
66
* Added `message.deleted` to the Webhook enum, appended tests
7+
* Fixed Participant.email not being optional, Microsoft events can now be represented
78

89
v6.13.1
910
----------

nylas/models/events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class Participant:
2929
Interface representing an Event participant.
3030
3131
Attributes:
32-
email: Participant's email address.
32+
email: Participant's email address. Required for all providers except Microsoft.
3333
name: Participant's name.
3434
status: Participant's status.
3535
comment: Comment by the participant.
3636
phone_number: Participant's phone number.
3737
"""
3838

39-
email: str
39+
email: Optional[str] = None
4040
status: Optional[ParticipantStatus] = None
4141
name: Optional[str] = None
4242
comment: Optional[str] = None
@@ -409,7 +409,7 @@ class CreateParticipant(TypedDict):
409409
phone_number: Participant's phone number.
410410
"""
411411

412-
email: str
412+
email: NotRequired[str]
413413
name: NotRequired[str]
414414
comment: NotRequired[str]
415415
phone_number: NotRequired[str]

0 commit comments

Comments
 (0)