From 7d2ebd9b794db70dbfa968dc1c342b2e38ff4269 Mon Sep 17 00:00:00 2001 From: Prafyl Date: Mon, 21 Sep 2026 12:47:57 +0545 Subject: [PATCH] Fix the documented type of IPv4Address.ipv6_mapped It is documented as an IPv4Address object, but it returns an IPv6Address, as its own docstring says. --- Doc/library/ipaddress.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/ipaddress.rst b/Doc/library/ipaddress.rst index 7d16357a9f3393..2c7deb40e9044c 100644 --- a/Doc/library/ipaddress.rst +++ b/Doc/library/ipaddress.rst @@ -261,7 +261,7 @@ write code that handles both IP versions correctly. Address objects are .. attribute:: ipv6_mapped - :class:`IPv4Address` object representing the IPv4-mapped IPv6 address. See :RFC:`4291`. + :class:`IPv6Address` object representing the IPv4-mapped IPv6 address. See :RFC:`4291`. .. versionadded:: 3.13