Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ nylas-python Changelog
Unreleased
----------
* Added `message.deleted` to the Webhook enum, appended tests
* Fixed Participant.email not being optional, Microsoft events can now be represented

v6.13.1
----------
Expand Down
6 changes: 3 additions & 3 deletions nylas/models/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class Participant:
Interface representing an Event participant.

Attributes:
email: Participant's email address.
email: Participant's email address. Required for all providers except Microsoft.
name: Participant's name.
status: Participant's status.
comment: Comment by the participant.
phone_number: Participant's phone number.
"""

email: str
email: Optional[str] = None
status: Optional[ParticipantStatus] = None
name: Optional[str] = None
comment: Optional[str] = None
Expand Down Expand Up @@ -409,7 +409,7 @@ class CreateParticipant(TypedDict):
phone_number: Participant's phone number.
"""

email: str
email: NotRequired[str]
name: NotRequired[str]
comment: NotRequired[str]
phone_number: NotRequired[str]
Expand Down