mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Stdlib: add container default values (#9909)
This commit is contained in:
@@ -28,7 +28,7 @@ class SAXReaderNotAvailable(SAXNotSupportedException): ...
|
||||
default_parser_list: list[str]
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def make_parser(parser_list: Iterable[str] = ...) -> XMLReader: ...
|
||||
def make_parser(parser_list: Iterable[str] = ()) -> XMLReader: ...
|
||||
def parse(
|
||||
source: StrPath | _SupportsReadClose[bytes] | _SupportsReadClose[str],
|
||||
handler: ContentHandler,
|
||||
@@ -36,7 +36,7 @@ if sys.version_info >= (3, 8):
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def make_parser(parser_list: list[str] = ...) -> XMLReader: ...
|
||||
def make_parser(parser_list: list[str] = []) -> XMLReader: ...
|
||||
def parse(
|
||||
source: str | _SupportsReadClose[bytes] | _SupportsReadClose[str],
|
||||
handler: ContentHandler,
|
||||
|
||||
@@ -4,9 +4,9 @@ from collections.abc import Mapping
|
||||
from io import RawIOBase, TextIOBase
|
||||
from xml.sax import handler, 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: str, entities: Mapping[str, str] = {}) -> str: ...
|
||||
def unescape(data: str, entities: Mapping[str, str] = {}) -> str: ...
|
||||
def quoteattr(data: str, entities: Mapping[str, str] = {}) -> str: ...
|
||||
|
||||
class XMLGenerator(handler.ContentHandler):
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user