From 019bcbf90ad62021716ce8fc64da2faa5cacc51a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 20 Aug 2020 00:08:10 +0200 Subject: [PATCH] Replaced values.unset in Twilio methods signature with None for JSON compatibility --- platypush/plugins/twilio.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platypush/plugins/twilio.py b/platypush/plugins/twilio.py index 0780e9d64..fae65e183 100644 --- a/platypush/plugins/twilio.py +++ b/platypush/plugins/twilio.py @@ -156,15 +156,15 @@ class TwilioPlugin(Plugin): @action def register_phone_number(self, phone_number: str, - friendly_name: str = values.unset, - address_sid: str = values.unset, - sms_url: str = values.unset, - sms_fallback_url: str = values.unset, - status_callback: str = values.unset, + friendly_name: Optional[str] = None, + address_sid: Optional[str] = None, + sms_url: Optional[str] = None, + sms_fallback_url: Optional[str] = None, + status_callback: Optional[str] = None, voice_caller_id_lookup: bool = True, - voice_url: str = values.unset, - voice_fallback_url: str = values.unset, - area_code: str = values.unset) -> dict: + voice_url: Optional[str] = None, + voice_fallback_url: Optional[str] = None, + area_code: Optional[str] = None) -> dict: # noinspection SpellCheckingInspection """ Request to allocate a phone number on your Twilio account. The phone number should first be displayed as