error:"IPv4Network" has no attribute "hostmask" (#2482)

The hostmask property from the _BaseNetwork class was missing a stub.
This was causing type errors whenever using the hostmask property.

Fixes #2481.
This commit is contained in:
spdkils
2018-09-25 22:58:05 -07:00
committed by Jelle Zijlstra
parent 9fda6b20ec
commit 6968ff6cb0

View File

@@ -97,6 +97,8 @@ class _BaseNetwork(_IPAddressBase, Container, Iterable[_A], Generic[_A]):
def with_netmask(self) -> str: ...
@property
def with_prefixlen(self) -> str: ...
@property
def hostmask(self) -> _A: ...
class _BaseInterface(_BaseAddress, Generic[_A, _N]):
hostmask: _A