mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
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:
committed by
Matthias Kramm
parent
9429ac070b
commit
5264fa6d5d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user