Add missing '-> None' to all __init__ methods.

This commit is contained in:
Matthias Kramm
2015-11-09 10:25:08 -08:00
parent d2a3d4a4ed
commit 4fe8915d44
144 changed files with 580 additions and 580 deletions

View File

@@ -36,7 +36,7 @@ class _IPAddressBase(_TotalOrderingMixin):
def version(self): ...
class _BaseAddress(_IPAddressBase):
def __init__(self, address): ...
def __init__(self, address) -> None: ...
def __int__(self): ...
def __eq__(self, other): ...
def __lt__(self, other): ...
@@ -45,7 +45,7 @@ class _BaseAddress(_IPAddressBase):
def __hash__(self): ...
class _BaseNetwork(_IPAddressBase):
def __init__(self, address): ...
def __init__(self, address) -> None: ...
def hosts(self): ...
def __iter__(self): ...
def __getitem__(self, n): ...
@@ -88,14 +88,14 @@ class _BaseNetwork(_IPAddressBase):
def is_loopback(self): ...
class _BaseV4:
def __init__(self, address): ...
def __init__(self, address) -> None: ...
@property
def max_prefixlen(self): ...
@property
def version(self): ...
class IPv4Address(_BaseV4, _BaseAddress):
def __init__(self, address): ...
def __init__(self, address) -> None: ...
@property
def packed(self): ...
@property
@@ -115,7 +115,7 @@ class IPv4Interface(IPv4Address):
network = ... # type: Any
netmask = ... # type: Any
hostmask = ... # type: Any
def __init__(self, address): ...
def __init__(self, address) -> None: ...
def __eq__(self, other): ...
def __lt__(self, other): ...
def __hash__(self): ...
@@ -132,19 +132,19 @@ class IPv4Network(_BaseV4, _BaseNetwork):
network_address = ... # type: Any
netmask = ... # type: Any
hosts = ... # type: Any
def __init__(self, address, strict=True): ...
def __init__(self, address, strict=True) -> None: ...
@property
def is_global(self): ...
class _BaseV6:
def __init__(self, address): ...
def __init__(self, address) -> None: ...
@property
def max_prefixlen(self): ...
@property
def version(self): ...
class IPv6Address(_BaseV6, _BaseAddress):
def __init__(self, address): ...
def __init__(self, address) -> None: ...
@property
def packed(self): ...
@property
@@ -174,7 +174,7 @@ class IPv6Interface(IPv6Address):
network = ... # type: Any
netmask = ... # type: Any
hostmask = ... # type: Any
def __init__(self, address): ...
def __init__(self, address) -> None: ...
def __eq__(self, other): ...
def __lt__(self, other): ...
def __hash__(self): ...
@@ -194,7 +194,7 @@ class IPv6Interface(IPv6Address):
class IPv6Network(_BaseV6, _BaseNetwork):
network_address = ... # type: Any
netmask = ... # type: Any
def __init__(self, address, strict=True): ...
def __init__(self, address, strict=True) -> None: ...
def hosts(self): ...
@property
def is_site_local(self): ...