We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5fc356 commit 0c9f0d2Copy full SHA for 0c9f0d2
stdlib/2and3/xml/sax/saxutils.pyi
@@ -1,12 +1,12 @@
1
import sys
2
-from typing import AnyStr, Mapping
+from typing import Mapping, Text
3
4
from xml.sax import handler
5
from xml.sax import xmlreader
6
7
-def escape(data: AnyStr, entities: Mapping[str, str] = ...) -> AnyStr: ...
8
-def unescape(data: AnyStr, entities: Mapping[str, str] = ...) -> AnyStr: ...
9
-def quoteattr(data: AnyStr, entities: Mapping[str, str] = ...) -> AnyStr: ...
+def escape(data: Text, entities: Mapping[Text, Text] = ...) -> Text: ...
+def unescape(data: Text, entities: Mapping[Text, Text] = ...) -> Text: ...
+def quoteattr(data: Text, entities: Mapping[Text, Text] = ...) -> Text: ...
10
11
class XMLGenerator(handler.ContentHandler):
12
if sys.version_info >= (3, 0):
0 commit comments