Skip to content

Commit 7615adb

Browse files
committed
Update ip_address types in docs
It was incorrect. Longer term, it may make sense to drop the type info in the docs given that we have type hints in t he code.
1 parent 28c3b12 commit 7615adb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

geoip2/models.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class AnonymousIP(SimpleModel):
471471
472472
The IP address used in the lookup.
473473
474-
:type: str
474+
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
475475
476476
.. attribute:: network
477477
@@ -534,7 +534,7 @@ class ASN(SimpleModel):
534534
535535
The IP address used in the lookup.
536536
537-
:type: str
537+
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
538538
539539
.. attribute:: network
540540
@@ -587,7 +587,7 @@ class ConnectionType(SimpleModel):
587587
588588
The IP address used in the lookup.
589589
590-
:type: str
590+
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
591591
592592
.. attribute:: network
593593
@@ -628,7 +628,7 @@ class Domain(SimpleModel):
628628
629629
The IP address used in the lookup.
630630
631-
:type: str
631+
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
632632
633633
.. attribute:: network
634634
@@ -705,7 +705,7 @@ class ISP(ASN):
705705
706706
The IP address used in the lookup.
707707
708-
:type: str
708+
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
709709
710710
.. attribute:: network
711711

geoip2/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ class Traits(Record):
651651
running on. If the system is behind a NAT, this may differ from the IP
652652
address locally assigned to it.
653653
654-
:type: str
654+
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
655655
656656
.. attribute:: is_anonymous
657657

0 commit comments

Comments
 (0)