mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Add missing '-> None' to all __init__ methods.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user