Remove list return type from _BaseNetwork.hosts (#15047)

Per https://github.com/python/cpython/issues/141497#issuecomment-3546793394

Thanks to serhiy-storchaka for the notification
This commit is contained in:
Sebastian Rittau
2025-11-18 11:58:44 +01:00
committed by GitHub
parent f1f85ee333
commit 6387a6f9c1
+1 -1
View File
@@ -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