add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions

View File

View File

@@ -0,0 +1,14 @@
# Stubs for xml.etree.ElementInclude (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
XINCLUDE = ... # type: Any
XINCLUDE_INCLUDE = ... # type: Any
XINCLUDE_FALLBACK = ... # type: Any
class FatalIncludeError(SyntaxError): ...
def default_loader(href, parse, encoding=None): ...
def include(elem, loader=None): ...

View File

@@ -0,0 +1,28 @@
# Stubs for xml.etree.ElementPath (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
xpath_tokenizer_re = ... # type: Any
def xpath_tokenizer(pattern, namespaces=None): ...
def get_parent_map(context): ...
def prepare_child(next, token): ...
def prepare_star(next, token): ...
def prepare_self(next, token): ...
def prepare_descendant(next, token): ...
def prepare_parent(next, token): ...
def prepare_predicate(next, token): ...
ops = ... # type: Any
class _SelectorContext:
parent_map = ... # type: Any
root = ... # type: Any
def __init__(self, root): ...
def iterfind(elem, path, namespaces=None): ...
def find(elem, path, namespaces=None): ...
def findall(elem, path, namespaces=None): ...
def findtext(elem, path, default=None, namespaces=None): ...

View File

@@ -0,0 +1,127 @@
# Stubs for xml.etree.ElementTree (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import io
VERSION = ... # type: Any
class ParseError(SyntaxError): ...
def iselement(element): ...
class Element:
def __init__(self, tag, attrib=..., **extra): ...
def append(self, *args, **kwargs): ...
def clear(self, *args, **kwargs): ...
def extend(self, *args, **kwargs): ...
def find(self, *args, **kwargs): ...
def findall(self, *args, **kwargs): ...
def findtext(self, match, default=..., namespaces=...): ...
def get(self, *args, **kwargs): ...
def getchildren(self): ...
def getiterator(self, tag=...): ...
def insert(self, *args, **kwargs): ...
def items(self, *args, **kwargs): ...
def iter(self, *args, **kwargs): ...
def iterfind(self, match, namespaces=...): ...
def itertext(self): ...
def keys(self): ...
def makeelement(self, tag, attrib): ...
def remove(self, *args, **kwargs): ...
def set(self, *args, **kwargs): ...
def __copy__(self): ...
def __deepcopy__(self): ...
def __delattr__(self, name): ...
def __delitem__(self, name): ...
def __getitem__(self, name): ...
def __getstate__(self): ...
def __len__(self): ...
def __setattr__(self, name, value): ...
def __setitem__(self, index, object): ...
def __setstate__(self, state): ...
def __sizeof__(self): ...
def SubElement(parent, tag, attrib=..., **extra): ...
def Comment(text=None): ...
def ProcessingInstruction(target, text=None): ...
PI = ... # type: Any
class QName:
text = ... # type: Any
def __init__(self, text_or_uri, tag=None): ...
def __hash__(self): ...
def __le__(self, other): ...
def __lt__(self, other): ...
def __ge__(self, other): ...
def __gt__(self, other): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class ElementTree:
def __init__(self, element=None, file=None): ...
def getroot(self): ...
def parse(self, source, parser=None): ...
def iter(self, tag=None): ...
def getiterator(self, tag=None): ...
def find(self, path, namespaces=None): ...
def findtext(self, path, default=None, namespaces=None): ...
def findall(self, path, namespaces=None): ...
def iterfind(self, path, namespaces=None): ...
def write(self, file_or_filename, encoding=None, xml_declaration=None, default_namespace=None, method=None, *, short_empty_elements=True): ...
def write_c14n(self, file): ...
def register_namespace(prefix, uri): ...
def tostring(element, encoding=None, method=None, *, short_empty_elements=True): ...
class _ListDataStream(io.BufferedIOBase):
lst = ... # type: Any
def __init__(self, lst): ...
def writable(self): ...
def seekable(self): ...
def write(self, b): ...
def tell(self): ...
def tostringlist(element, encoding=None, method=None, *, short_empty_elements=True): ...
def dump(elem): ...
def parse(source, parser=None): ...
def iterparse(source, events=None, parser=None): ...
class XMLPullParser:
def __init__(self, events=None, *, _parser=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 __next__(self): ...
def __iter__(self): ...
def XML(text, parser=None): ...
def XMLID(text, parser=None): ...
fromstring = ... # type: Any
def fromstringlist(sequence, parser=None): ...
class TreeBuilder:
def __init__(self, element_factory=None): ...
def close(self): ...
def data(self, data): ...
def start(self, tag, attrs): ...
def end(self, tag): ...
class XMLParser:
target = ... # type: Any
entity = ... # type: Any
version = ... # type: Any
def __init__(self, html=..., target=..., encoding=...): ...
def _parse_whole(self, *args, **kwargs): ...
def _setevents(self, *args, **kwargs): ...
def close(self, *args, **kwargs): ...
def doctype(self, name, pubid, system): ...
def feed(self, data): ...

View File

View File

@@ -0,0 +1,5 @@
# Stubs for xml.etree.cElementTree (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from xml.etree.ElementTree import *