mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
Fix ipaddress._BaseNetwork.hosts return type (#14658)
Both `IPv4Network` and `IPv6Network` can return a single-element list instead of iterator.
This commit is contained in:
@@ -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]: ...
|
||||
def hosts(self) -> Iterator[_A] | list[_A]: ...
|
||||
@property
|
||||
def is_global(self) -> bool: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user