From 6968ff6cb0858a709d260ade5d3e9b1c802c8b08 Mon Sep 17 00:00:00 2001 From: spdkils Date: Tue, 25 Sep 2018 22:58:05 -0700 Subject: [PATCH] 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. --- stdlib/3/ipaddress.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/3/ipaddress.pyi b/stdlib/3/ipaddress.pyi index 90a88b8ea..c475a8984 100644 --- a/stdlib/3/ipaddress.pyi +++ b/stdlib/3/ipaddress.pyi @@ -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