

def _is_number_geographical(numobj):
    "Tests whether a phone number has a geographical association.\n\n    It checks if the number is associated to a certain region in the country\n    where it belongs to. Note that this doesn't verify if the number is\n    actually in use.\n\n    A similar method is implemented as geocoder._can_be_geocoded, which\n    performs a looser check, since it only prevents cases where prefixes\n    overlap for geocodable and non-geocodable numbers. Also, if new phone\n    number types were added, we should check if this other method should be\n    updated too.\n    "
    num_type = number_type(numobj)
    return ((numobj == PhoneNumberType.FIXED_LINE) or (num_type == PhoneNumberType.FIXED_LINE_OR_MOBILE) or ((numobj.country_code in _GEO_MOBILE_COUNTRIES) and (num_type == PhoneNumberType.MOBILE)))

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py _is_number_geographical/VarMisuse@22/246 `num_type`->`numobj`