mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user