diff --git a/stdlib/2and3/xml/sax/saxutils.pyi b/stdlib/2and3/xml/sax/saxutils.pyi index fb45a6089..80a497cd8 100644 --- a/stdlib/2and3/xml/sax/saxutils.pyi +++ b/stdlib/2and3/xml/sax/saxutils.pyi @@ -1,12 +1,12 @@ import sys -from typing import Mapping +from typing import AnyStr, Mapping from xml.sax import handler from xml.sax import xmlreader -def escape(data: str, entities: Mapping[str, str] = ...) -> str: ... -def unescape(data: str, entities: Mapping[str, str] = ...) -> str: ... -def quoteattr(data: str, entities: Mapping[str, str] = ...) -> str: ... +def escape(data: AnyStr, entities: Mapping[str, str] = ...) -> AnyStr: ... +def unescape(data: AnyStr, entities: Mapping[str, str] = ...) -> AnyStr: ... +def quoteattr(data: AnyStr, entities: Mapping[str, str] = ...) -> AnyStr: ... class XMLGenerator(handler.ContentHandler): if sys.version_info >= (3, 0):