def number_type(numobj):
 region_code = region_code_for_number(numobj)
 metadata = PhoneMetadata.metadata_for_region_or_calling_code(numobj.country_code, region_code)
 if (metadata is None):
  return PhoneNumberType.UNKNOWN
 national_number = national_significant_number(numobj)
 return _number_type_helper(national_number, metadata)

def number_type ( numobj ) : region_code = region_code_for_number ( numobj ) metadata = PhoneMetadata . metadata_for_region_or_calling_code ( numobj . country_code , region_code ) if ( metadata is None ) : return PhoneNumberType . UNKNOWN national_number = national_significant_number ( numobj ) return _number_type_helper ( national_number , metadata )
gets the type of a phone number .