diff options
author | Rafael Fontenelle <rffontenelle@users.noreply.github.com> | 2024-05-27 12:39:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-27 12:39:59 (GMT) |
commit | 59630f92d8223f80993e3646b0f734d27f4b8dd4 (patch) | |
tree | 51ec1d6d417206214410030721a11aa04ef5fbc6 | |
parent | 041a566f3f987619cef7d6ae7915ba93e39d2d1e (diff) | |
download | cpython-59630f92d8223f80993e3646b0f734d27f4b8dd4.zip cpython-59630f92d8223f80993e3646b0f734d27f4b8dd4.tar.gz cpython-59630f92d8223f80993e3646b0f734d27f4b8dd4.tar.bz2 |
Docs: Add class role for IPV{4,6}Address and fix a typo (#118059)
Add class role for IPV{4,6}Address and fix a typo
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
-rw-r--r-- | Doc/library/ipaddress.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/ipaddress.rst b/Doc/library/ipaddress.rst index d7dccf1..ead841b 100644 --- a/Doc/library/ipaddress.rst +++ b/Doc/library/ipaddress.rst @@ -504,7 +504,7 @@ dictionaries. 4. A two-tuple of an address description and a netmask, where the address description is either a string, a 32-bits integer, a 4-bytes packed - integer, or an existing IPv4Address object; and the netmask is either + integer, or an existing :class:`IPv4Address` object; and the netmask is either an integer representing the prefix length (e.g. ``24``) or a string representing the prefix mask (e.g. ``255.255.255.0``). @@ -725,7 +725,7 @@ dictionaries. 4. A two-tuple of an address description and a netmask, where the address description is either a string, a 128-bits integer, a 16-bytes packed - integer, or an existing IPv6Address object; and the netmask is an + integer, or an existing :class:`IPv6Address` object; and the netmask is an integer representing the prefix length. An :exc:`AddressValueError` is raised if *address* is not a valid IPv6 @@ -781,7 +781,7 @@ dictionaries. .. attribute:: is_site_local - These attribute is true for the network as a whole if it is true + This attribute is true for the network as a whole if it is true for both the network address and the broadcast address. |