@@ -85,7 +85,7 @@ class GeoIP2Location(geoip2.records.Location):
8585
8686 def __init__ (self , * args , ** kwargs ) -> None :
8787 self .local_time = kwargs .get ("local_time" , None )
88- super (GeoIP2Location , self ).__init__ (* args , ** kwargs )
88+ super ().__init__ (* args , ** kwargs )
8989
9090
9191class GeoIP2Country (geoip2 .records .Country ):
@@ -113,7 +113,7 @@ class GeoIP2Country(geoip2.records.Country):
113113
114114 def __init__ (self , * args , ** kwargs ) -> None :
115115 self .is_high_risk = kwargs .get ("is_high_risk" , False )
116- super (GeoIP2Country , self ).__init__ (* args , ** kwargs )
116+ super ().__init__ (* args , ** kwargs )
117117
118118
119119class IPAddress (geoip2 .models .Insights ):
@@ -196,7 +196,7 @@ def __init__(self, ip_address: Dict[str, Any]) -> None:
196196 locales = ip_address .get ("_locales" )
197197 if "_locales" in ip_address :
198198 del ip_address ["_locales" ]
199- super (IPAddress , self ).__init__ (ip_address , locales = locales )
199+ super ().__init__ (ip_address , locales = locales )
200200 self .country = GeoIP2Country (locales , ** ip_address .get ("country" , {}))
201201 self .location = GeoIP2Location (** ip_address .get ("location" , {}))
202202 self .risk = ip_address .get ("risk" , None )
@@ -207,7 +207,7 @@ def __init__(self, ip_address: Dict[str, Any]) -> None:
207207 def __setattr__ (self , name : str , value : Any ) -> None :
208208 if hasattr (self , "_finalized" ) and self ._finalized :
209209 raise AttributeError ("can't set attribute" )
210- super (IPAddress , self ).__setattr__ (name , value )
210+ super ().__setattr__ (name , value )
211211
212212
213213@_inflate_to_namedtuple
0 commit comments