@@ -76,7 +76,7 @@ class City(PlaceRecord):
7676 The name of the city based on the locales list passed to the
7777 constructor.
7878
79- :type:unicode
79+ :type:str
8080
8181 .. attribute:: names
8282
@@ -117,7 +117,7 @@ class Continent(PlaceRecord):
117117 A two character continent code like "NA" (North America)
118118 or "OC" (Oceania).
119119
120- :type:unicode
120+ :type:str
121121
122122 .. attribute:: geoname_id
123123
@@ -130,7 +130,7 @@ class Continent(PlaceRecord):
130130 Returns the name of the continent based on the locales list passed to
131131 the constructor.
132132
133- :type:unicode
133+ :type:str
134134
135135 .. attribute:: names
136136
@@ -191,14 +191,14 @@ class Country(PlaceRecord):
191191 <http://en.wikipedia.org/wiki/ISO_3166-1>`_ alpha code for the
192192 country.
193193
194- :type:unicode
194+ :type:str
195195
196196 .. attribute:: name
197197
198198 The name of the country based on the locales list passed to the
199199 constructor.
200200
201- :type:unicode
201+ :type:str
202202
203203 .. attribute:: names
204204
@@ -266,14 +266,14 @@ class RepresentedCountry(Country):
266266 The two-character `ISO 3166-1
267267 <http://en.wikipedia.org/wiki/ISO_3166-1>`_ alpha code for the country.
268268
269- :type:unicode
269+ :type:str
270270
271271 .. attribute:: name
272272
273273 The name of the country based on the locales list passed to the
274274 constructor.
275275
276- :type:unicode
276+ :type:str
277277
278278 .. attribute:: names
279279
@@ -289,7 +289,7 @@ class RepresentedCountry(Country):
289289 country. Currently we only return ``military`` but this could expand to
290290 include other types in the future.
291291
292- :type:unicode
292+ :type:str
293293
294294 """
295295
@@ -376,7 +376,7 @@ class Location(Record):
376376 Zone Database <http://www.iana.org/time-zones>`_, e.g.,
377377 "America/New_York".
378378
379- :type:unicode
379+ :type:str
380380
381381 """
382382
@@ -443,7 +443,7 @@ class Postal(Record):
443443 codes are not available for all countries. In some countries, this will
444444 only contain part of the postal code.
445445
446- :type:unicode
446+ :type:str
447447
448448 .. attribute:: confidence
449449
@@ -496,14 +496,14 @@ class Subdivision(PlaceRecord):
496496 contain the subdivision portion of the `ISO 3166-2 code
497497 <http://en.wikipedia.org/wiki/ISO_3166-2>`_.
498498
499- :type:unicode
499+ :type:str
500500
501501 .. attribute:: name
502502
503503 The name of the subdivision based on the locales list passed to the
504504 constructor.
505505
506- :type:unicode
506+ :type:str
507507
508508 .. attribute:: names
509509
@@ -598,7 +598,7 @@ class Traits(Record):
598598 the IP address. This attribute is only available from the City and
599599 Insights web service end points and the GeoIP2 Enterprise database.
600600
601- :type:unicode
601+ :type:str
602602
603603 .. attribute:: connection_type
604604
@@ -613,7 +613,7 @@ class Traits(Record):
613613
614614 This attribute is only available in the GeoIP2 Enterprise database.
615615
616- :type:unicode
616+ :type:str
617617
618618 .. attribute:: domain
619619
@@ -623,7 +623,7 @@ class Traits(Record):
623623 from the City and Insights web service end points and the GeoIP2
624624 Enterprise database.
625625
626- :type:unicode
626+ :type:str
627627
628628 .. attribute:: ip_address
629629
@@ -633,7 +633,7 @@ class Traits(Record):
633633 running on. If the system is behind a NAT, this may differ from the IP
634634 address locally assigned to it.
635635
636- :type:unicode
636+ :type:str
637637
638638 .. attribute:: is_anonymous
639639
@@ -713,7 +713,7 @@ class Traits(Record):
713713
714714 .. attribute:: is_tor_exit_node
715715
716- This is true if the IP address is a Tor exit node. This attribute is
716+ This is true if the IP address is a Tor exit node. This attribute is
717717 only available from GeoIP2 Precision Insights.
718718
719719 :type: bool
@@ -724,7 +724,25 @@ class Traits(Record):
724724 only available from the City and Insights web service end points and the
725725 GeoIP2 Enterprise database.
726726
727- :type: unicode
727+ :type: str
728+
729+ .. attribute: mobile_country_code
730+
731+ The `mobile country code (MCC)
732+ <https://en.wikipedia.org/wiki/Mobile_country_code>`_ associated with the
733+ IP address and ISP. This attribute is available from the City and
734+ Insights web services and the GeoIP2 Enterprise database.
735+
736+ :type: str
737+
738+ .. attribute: mobile_network_code
739+
740+ The `mobile network code (MNC)
741+ <https://en.wikipedia.org/wiki/Mobile_country_code>`_ associated with the
742+ IP address and ISP. This attribute is available from the City and
743+ Insights web services and the GeoIP2 Enterprise database.
744+
745+ :type: str
728746
729747 .. attribute:: network
730748
@@ -740,7 +758,7 @@ class Traits(Record):
740758 attribute is only available from the City and Insights web service end
741759 points and the GeoIP2 Enterprise database.
742760
743- :type:unicode
761+ :type:str
744762
745763 .. attribute:: static_ip_score
746764
@@ -789,7 +807,7 @@ class Traits(Record):
789807 This attribute is only available from the Insights end point and the
790808 GeoIP2 Enterprise database.
791809
792- :type:unicode
810+ :type:str
793811
794812 """
795813
@@ -808,6 +826,8 @@ class Traits(Record):
808826is_tor_exit_node :bool
809827isp :Optional [str ]
810828ip_address :Optional [str ]
829+ mobile_country_code :Optional [str ]
830+ mobile_network_code :Optional [str ]
811831organization :Optional [str ]
812832static_ip_score :Optional [float ]
813833user_count :Optional [int ]
@@ -838,6 +858,8 @@ def __init__(
838858static_ip_score :Optional [float ]= None ,
839859user_count :Optional [int ]= None ,
840860user_type :Optional [str ]= None ,
861+ mobile_country_code :Optional [str ]= None ,
862+ mobile_network_code :Optional [str ]= None ,
841863** _ ,
842864 )-> None :
843865self .autonomous_system_number = autonomous_system_number
@@ -854,6 +876,8 @@ def __init__(
854876self .is_satellite_provider = is_satellite_provider
855877self .is_tor_exit_node = is_tor_exit_node
856878self .isp = isp
879+ self .mobile_country_code = mobile_country_code
880+ self .mobile_network_code = mobile_network_code
857881self .organization = organization
858882self .static_ip_score = static_ip_score
859883self .user_type = user_type