Skip to content

Commit 6387a6f

Browse files
authored
Remove list return type from _BaseNetwork.hosts (#15047)
Per python/cpython#141497 (comment) Thanks to serhiy-storchaka for the notification
1 parent f1f85ee commit 6387a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/ipaddress.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class _BaseNetwork(_IPAddressBase, Generic[_A]):
7373
@property
7474
def broadcast_address(self) -> _A: ...
7575
def compare_networks(self, other: Self) -> int: ...
76-
def hosts(self) -> Iterator[_A] | list[_A]: ...
76+
def hosts(self) -> Iterator[_A]: ...
7777
@property
7878
def is_global(self) -> bool: ...
7979
@property

0 commit comments

Comments
 (0)