Skip to content

Commit

Permalink
Update ip_address types in docs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
oschwald committed Jan 28, 2025
1 parent 28c3b12 commit 7615adb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions geoip2/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class AnonymousIP(SimpleModel):
The IP address used in the lookup.
:type: str
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
.. attribute:: network
Expand Down Expand Up @@ -534,7 +534,7 @@ class ASN(SimpleModel):
The IP address used in the lookup.
:type: str
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
.. attribute:: network
Expand Down Expand Up @@ -587,7 +587,7 @@ class ConnectionType(SimpleModel):
The IP address used in the lookup.
:type: str
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
.. attribute:: network
Expand Down Expand Up @@ -628,7 +628,7 @@ class Domain(SimpleModel):
The IP address used in the lookup.
:type: str
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
.. attribute:: network
Expand Down Expand Up @@ -705,7 +705,7 @@ class ISP(ASN):
The IP address used in the lookup.
:type: str
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
.. attribute:: network
Expand Down
2 changes: 1 addition & 1 deletion geoip2/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class Traits(Record):
running on. If the system is behind a NAT, this may differ from the IP
address locally assigned to it.
:type: str
:type: ipaddress.IPv4Address or ipaddress.IPv6Address
.. attribute:: is_anonymous
Expand Down

0 comments on commit 7615adb

Please sign in to comment.