@@ -634,14 +634,6 @@ class Traits(Record):
634634
635635 :type: str
636636
637- .. attribute:: is_anycast
638-
639- This is true if the IP address is anycast.
640- This attribute is available from the Country, City Plus, Insights
641- web services and the Country, City, Enterprise databases.
642-
643- :type: bool
644-
645637 .. attribute:: is_anonymous
646638
647639 This is true if the IP address belongs to any sort of anonymous network.
@@ -673,6 +665,15 @@ class Traits(Record):
673665
674666 :type: bool
675667
668+ .. attribute:: is_anycast
669+
670+ This returns true if the IP address belongs to an
671+ `anycast network <https://en.wikipedia.org/wiki/Anycast>`_.
672+ This is available for the GeoIP2 Country, City Plus, and Insights
673+ web services and the GeoIP2 Country, City, and Enterprise databases.
674+
675+ :type: bool
676+
676677 .. attribute:: is_hosting_provider
677678
678679 This is true if the IP address belongs to a hosting or VPN provider
@@ -823,18 +824,18 @@ class Traits(Record):
823824 autonomous_system_organization : Optional [str ]
824825 connection_type : Optional [str ]
825826 domain : Optional [str ]
826- is_anycast : bool
827+ ip_address : Optional [ str ]
827828 is_anonymous : bool
828829 is_anonymous_proxy : bool
829830 is_anonymous_vpn : bool
831+ is_anycast : bool
830832 is_hosting_provider : bool
831833 is_legitimate_proxy : bool
832834 is_public_proxy : bool
833835 is_residential_proxy : bool
834836 is_satellite_provider : bool
835837 is_tor_exit_node : bool
836838 isp : Optional [str ]
837- ip_address : Optional [str ]
838839 mobile_country_code : Optional [str ]
839840 mobile_network_code : Optional [str ]
840841 organization : Optional [str ]
@@ -850,7 +851,6 @@ def __init__(
850851 autonomous_system_organization : Optional [str ] = None ,
851852 connection_type : Optional [str ] = None ,
852853 domain : Optional [str ] = None ,
853- is_anycast : bool = False ,
854854 is_anonymous : bool = False ,
855855 is_anonymous_proxy : bool = False ,
856856 is_anonymous_vpn : bool = False ,
@@ -870,16 +870,17 @@ def __init__(
870870 user_type : Optional [str ] = None ,
871871 mobile_country_code : Optional [str ] = None ,
872872 mobile_network_code : Optional [str ] = None ,
873+ is_anycast : bool = False ,
873874 ** _ ,
874875 ) -> None :
875876 self .autonomous_system_number = autonomous_system_number
876877 self .autonomous_system_organization = autonomous_system_organization
877878 self .connection_type = connection_type
878879 self .domain = domain
879- self .is_anycast = is_anycast
880880 self .is_anonymous = is_anonymous
881881 self .is_anonymous_proxy = is_anonymous_proxy
882882 self .is_anonymous_vpn = is_anonymous_vpn
883+ self .is_anycast = is_anycast
883884 self .is_hosting_provider = is_hosting_provider
884885 self .is_legitimate_proxy = is_legitimate_proxy
885886 self .is_public_proxy = is_public_proxy
0 commit comments