-
Notifications
You must be signed in to change notification settings - Fork 784
Labels
code-generationissue deals with generated codeissue deals with generated codedifficulty: easyfix is easy in difficultyfix is easy in difficultytype: bugbug in the librarybug in the library
Description
The type hint on the carrier
property incorrectly marks it as unicode
instead of dict
here: https://github.com/twilio/twilio-python/blob/6.21.0/twilio/rest/lookups/v1/phone_number.py#L244
Version:
6.21
Code Snippet
>>> p = client.lookups.phone_numbers('+12063211234').fetch(type='carrier')
>>> type(p.carrier) # Type hint of unicode is incorrect: https://github.com/twilio/twilio-python/blob/6.21.0/twilio/rest/lookups/v1/phone_number.py#L244
<class 'dict'>
Steps to Reproduce
- Use Twilio Python SDK to do a Lookup API call on a phone number
- See the type of the
carrier
property of the resultingPhoneNumberInstance
. It is notunicode
, but adict
instead.
Metadata
Metadata
Assignees
Labels
code-generationissue deals with generated codeissue deals with generated codedifficulty: easyfix is easy in difficultyfix is easy in difficultytype: bugbug in the librarybug in the library