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

@@ -7,7 +7,7 @@ from collections import Sequence
class _Flavour:
join = ... # type: Any
def __init__(self): ...
def __init__(self) -> None: ...
def parse_parts(self, parts): ...
def join_parsed_parts(self, drv, root, parts, drv2, root2, parts2): ...
@@ -61,29 +61,29 @@ class _NormalAccessor(_Accessor):
class _Selector:
child_parts = ... # type: Any
successor = ... # type: Any
def __init__(self, child_parts): ...
def __init__(self, child_parts) -> None: ...
def select_from(self, parent_path): ...
class _TerminatingSelector: ...
class _PreciseSelector(_Selector):
name = ... # type: Any
def __init__(self, name, child_parts): ...
def __init__(self, name, child_parts) -> None: ...
class _WildcardSelector(_Selector):
pat = ... # type: Any
def __init__(self, pat, child_parts): ...
def __init__(self, pat, child_parts) -> None: ...
class _RecursiveWildcardSelector(_Selector):
def __init__(self, pat, child_parts): ...
def __init__(self, pat, child_parts) -> None: ...
class _PathParents(Sequence):
def __init__(self, path): ...
def __init__(self, path) -> None: ...
def __len__(self): ...
def __getitem__(self, idx): ...
class PurePath:
def __init__(self, *args): ...
def __init__(self, *args) -> None: ...
def __reduce__(self): ...
def as_posix(self): ...
def __bytes__(self): ...
@@ -127,7 +127,7 @@ class PurePosixPath(PurePath): ...
class PureWindowsPath(PurePath): ...
class Path(PurePath):
def __init__(self, *args, **kwargs): ...
def __init__(self, *args, **kwargs) -> None: ...
def __enter__(self): ...
def __exit__(self, t, v, tb): ...
@classmethod