From b12b02729b2d47bc68647ccc96a053b15ca37c52 Mon Sep 17 00:00:00 2001 From: Samuel Xavier Date: Fri, 5 Dec 2025 20:02:12 -0300 Subject: [PATCH] CUST-4960 Fixed Participant.email not being optional --- CHANGELOG.md | 1 + nylas/models/events.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc6f78f..348db45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ---------- diff --git a/nylas/models/events.py b/nylas/models/events.py index 118eeaf..c4a2045 100644 --- a/nylas/models/events.py +++ b/nylas/models/events.py @@ -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 @@ -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]