def _is_number_geographical(numobj):
    """Tests whether a phone number has a geographical association.

    It checks if the number is associated to a certain region in the country
    where it belongs to. Note that this doesn't verify if the number is
    actually in use.

    A similar method is implemented as geocoder._can_be_geocoded, which
    performs a looser check, since it only prevents cases where prefixes
    overlap for geocodable and non-geocodable numbers. Also, if new phone
    number types were added, we should check if this other method should be
    updated too.
    """
    num_type = number_type(numobj)
    return (num_type == PhoneNumberType.FIXED_LINE or
            num_type == PhoneNumberType.FIXED_LINE_OR_MOBILE or
            ((numobj.country_code in _GEO_MOBILE_COUNTRIES) or
             num_type == PhoneNumberType.MOBILE))
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py/_is_number_geographical/operator `and` -> `or`