Fix return-type of _BaseNetwork.supernet() (#1822)

The return type is currently defined as iterator, while it in fact returns a
network instance.
This commit is contained in:
Michel Albert
2018-01-11 17:24:11 +01:00
committed by Matthias Kramm
parent 9429ac070b
commit 5264fa6d5d

View File

@@ -91,7 +91,7 @@ class _BaseNetwork(_IPAddressBase, Container, Iterable[_A], Generic[_A]):
@property
def prefixlen(self) -> int: ...
def subnets(self: _T, prefixlen_diff: int = ..., new_prefix: Optional[int] = ...) -> Iterator[_T]: ...
def supernet(self: _T, prefixlen_diff: int = ..., new_prefix: Optional[int] = ...) -> Iterator[_T]: ...
def supernet(self: _T, prefixlen_diff: int = ..., new_prefix: Optional[int] = ...) -> _T: ...
@property
def with_hostmask(self) -> str: ...
@property