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

@@ -20,7 +20,7 @@ ops = ... # type: Any
class _SelectorContext:
parent_map = ... # type: Any
root = ... # type: Any
def __init__(self, root): ...
def __init__(self, root) -> None: ...
def iterfind(elem, path, namespaces=None): ...
def find(elem, path, namespaces=None): ...

View File

@@ -12,7 +12,7 @@ class ParseError(SyntaxError): ...
def iselement(element): ...
class Element:
def __init__(self, tag, attrib=..., **extra): ...
def __init__(self, tag, attrib=..., **extra) -> None: ...
def append(self, *args, **kwargs): ...
def clear(self, *args, **kwargs): ...
def extend(self, *args, **kwargs): ...
@@ -51,7 +51,7 @@ PI = ... # type: Any
class QName:
text = ... # type: Any
def __init__(self, text_or_uri, tag=None): ...
def __init__(self, text_or_uri, tag=None) -> None: ...
def __hash__(self): ...
def __le__(self, other): ...
def __lt__(self, other): ...
@@ -61,7 +61,7 @@ class QName:
def __ne__(self, other): ...
class ElementTree:
def __init__(self, element=None, file=None): ...
def __init__(self, element=None, file=None) -> None: ...
def getroot(self): ...
def parse(self, source, parser=None): ...
def iter(self, tag=None): ...
@@ -78,7 +78,7 @@ def tostring(element, encoding=None, method=None, *, short_empty_elements=True):
class _ListDataStream(io.BufferedIOBase):
lst = ... # type: Any
def __init__(self, lst): ...
def __init__(self, lst) -> None: ...
def writable(self): ...
def seekable(self): ...
def write(self, b): ...
@@ -90,14 +90,14 @@ def parse(source, parser=None): ...
def iterparse(source, events=None, parser=None): ...
class XMLPullParser:
def __init__(self, events=None, *, _parser=None): ...
def __init__(self, events=None, *, _parser=None) -> None: ...
def feed(self, data): ...
def close(self): ...
def read_events(self): ...
class _IterParseIterator:
root = ... # type: Any
def __init__(self, source, events, parser, close_source=False): ...
def __init__(self, source, events, parser, close_source=False) -> None: ...
def __next__(self): ...
def __iter__(self): ...
@@ -109,7 +109,7 @@ fromstring = ... # type: Any
def fromstringlist(sequence, parser=None): ...
class TreeBuilder:
def __init__(self, element_factory=None): ...
def __init__(self, element_factory=None) -> None: ...
def close(self): ...
def data(self, data): ...
def start(self, tag, attrs): ...
@@ -119,7 +119,7 @@ class XMLParser:
target = ... # type: Any
entity = ... # type: Any
version = ... # type: Any
def __init__(self, html=..., target=..., encoding=...): ...
def __init__(self, html=..., target=..., encoding=...) -> None: ...
def _parse_whole(self, *args, **kwargs): ...
def _setevents(self, *args, **kwargs): ...
def close(self, *args, **kwargs): ...