xml.sax.saxutils: make some functions take AnyStr (#1457)

Fixes #1062
This commit is contained in:
Jelle Zijlstra
2017-07-04 19:18:43 -07:00
committed by Matthias Kramm
parent 2b97c02801
commit fee2eaae30

View File

@@ -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):