1 # Stubs for xml.etree.ElementInclude (Python 3.4)
\r
3 from typing import Union, Optional, Callable
\r
4 from xml.etree.ElementTree import Element
\r
6 XINCLUDE = ... # type: str
\r
7 XINCLUDE_INCLUDE = ... # type: str
\r
8 XINCLUDE_FALLBACK = ... # type: str
\r
10 class FatalIncludeError(SyntaxError): ...
\r
12 def default_loader(href: Union[str, bytes, int], parse: str, encoding: Optional[str]=...) -> Union[str, Element]: ...
\r
14 # TODO: loader is of type default_loader ie it takes a callable that has the
\r
15 # same signature as default_loader. But default_loader has a keyword argument
\r
16 # Which can't be represented using Callable...
\r
17 def include(elem: Element, loader: Callable[..., Union[str, Element]]=...) -> None: ...
\r