Skip to content

Commit 2c1e6ef

Browse files
committed
Confirm use of int for nongeo key type
1 parent abd8bc2 commit 2c1e6ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/phonenumbers/phonemetadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,14 @@ class PhoneMetadata(UnicodeMixin, ImmutableMixin):
215215
# - None, to indicate that the metadata is already loaded
216216
region_available = {} # ISO 3166-1 alpha 2 => function or None
217217
# Likewise for non-geo country calling codes
218-
country_code_available = {} # ISO 3166-1 alpha 2 => function or None
218+
country_code_available = {} # country calling code (as int) => function or None
219219

220220
region_metadata = {} # ISO 3166-1 alpha 2 => PhoneMetadata
221221
# A mapping from a country calling code for a non-geographical entity to
222222
# the PhoneMetadata for that country calling code. Examples of the country
223223
# calling codes include 800 (International Toll Free Service) and 808
224224
# (International Shared Cost Service).
225-
country_code_metadata = {} # Country calling code => PhoneMetadata
225+
country_code_metadata = {} # country calling code (as int) => PhoneMetadata
226226

227227
@classmethod
228228
def metadata_for_region(kls, region_code, default=None):

0 commit comments

Comments
 (0)