From 7f50e087451e5d695ee0de1d5bd7c89bb592f162 Mon Sep 17 00:00:00 2001 From: gamero3alberto Date: Thu, 5 Mar 2026 10:28:22 +0100 Subject: [PATCH] Update phone_number.py The type of line_type_intelligence is wrong, as it recieves a JSON with plenty of parameters. So it has to be a dictionary of str-object. --- twilio/rest/lookups/v2/phone_number.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio/rest/lookups/v2/phone_number.py b/twilio/rest/lookups/v2/phone_number.py index 9523d62d9..05cb20977 100644 --- a/twilio/rest/lookups/v2/phone_number.py +++ b/twilio/rest/lookups/v2/phone_number.py @@ -68,7 +68,7 @@ def __init__( self.caller_name: Optional[str] = payload.get("caller_name") self.sim_swap: Optional[str] = payload.get("sim_swap") self.call_forwarding: Optional[str] = payload.get("call_forwarding") - self.line_type_intelligence: Optional[str] = payload.get( + self.line_type_intelligence: Optional[Dict[str,object]] = payload.get( "line_type_intelligence" ) self.line_status: Optional[str] = payload.get("line_status")