mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
allow for unicode entity dicts in saxutils (#2345)
This commit is contained in:
committed by
Rebecca Chen
parent
f5fc356928
commit
0c9f0d21d2
@@ -1,12 +1,12 @@
|
||||
import sys
|
||||
from typing import AnyStr, Mapping
|
||||
from typing import Mapping, Text
|
||||
|
||||
from xml.sax import handler
|
||||
from xml.sax import xmlreader
|
||||
|
||||
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: ...
|
||||
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: ...
|
||||
|
||||
class XMLGenerator(handler.ContentHandler):
|
||||
if sys.version_info >= (3, 0):
|
||||
|
||||
Reference in New Issue
Block a user