diff --git a/stdlib/3/xml/etree/ElementInclude.pyi b/stdlib/3/xml/etree/ElementInclude.pyi index 3369c9e18..cea0cb4f2 100644 --- a/stdlib/3/xml/etree/ElementInclude.pyi +++ b/stdlib/3/xml/etree/ElementInclude.pyi @@ -2,13 +2,18 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from typing import Any +from typing import Union, Optional +from .ElementTree import Element -XINCLUDE = ... # type: Any -XINCLUDE_INCLUDE = ... # type: Any -XINCLUDE_FALLBACK = ... # type: Any +XINCLUDE = ... # type: str +XINCLUDE_INCLUDE = ... # type: str +XINCLUDE_FALLBACK = ... # type: str class FatalIncludeError(SyntaxError): ... -def default_loader(href, parse, encoding=...): ... -def include(elem, loader=...): ... +def default_loader(href: Union[str, bytes, int], parse: str, encoding: Optional[str]=...) -> Union[str, Element]: ... + +# TODO: loader is of type default_loader ie it takes a callable that has the +# same signature as default_loader. But default_loader has a keyword argument +# Which can't be represented using Callable... +def include(elem: Element, loader=...) -> None: ...