Skip to content

Commit 8043d16

Browse files
committed
Merge upstream code changes
(Just a comment update)
1 parent f955b26 commit 8043d16

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

python/phonenumbers/phonenumberutil.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,12 +1878,13 @@ def _number_desc_by_type(metadata, num_type):
18781878

18791879

18801880
def number_type(numobj):
1881-
"""Gets the type of a phone number.
1881+
"""Gets the type of a valid phone number.
18821882
18831883
Arguments:
18841884
numobj -- The PhoneNumber object that we want to know the type of.
18851885
1886-
Returns the type of the phone number, as a PhoneNumberType value.
1886+
Returns the type of the phone number, as a PhoneNumberType value;
1887+
returns PhoneNumberType.UNKNOWN if it is invalid.
18871888
"""
18881889
region_code = region_code_for_number(numobj)
18891890
metadata = PhoneMetadata.metadata_for_region_or_calling_code(numobj.country_code, region_code)

0 commit comments

Comments
 (0)