From 6bbf72ed8b28f4153ec52e9a4d2c1cbc52e64eb1 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 18 Nov 2025 11:47:44 +0100 Subject: [PATCH] Remove `list` return type from `_BaseNetwork.hosts` Per https://github.com/python/cpython/issues/141497#issuecomment-3546793394 Thanks to @serhiy-storchaka for the notification --- stdlib/ipaddress.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/ipaddress.pyi b/stdlib/ipaddress.pyi index e2f3defa2dea..d09804cb9342 100644 --- a/stdlib/ipaddress.pyi +++ b/stdlib/ipaddress.pyi @@ -73,7 +73,7 @@ class _BaseNetwork(_IPAddressBase, Generic[_A]): @property def broadcast_address(self) -> _A: ... def compare_networks(self, other: Self) -> int: ... - def hosts(self) -> Iterator[_A] | list[_A]: ... + def hosts(self) -> Iterator[_A]: ... @property def is_global(self) -> bool: ... @property