Stdlib: add container default values (#9909)

This commit is contained in:
Alex Waygood
2023-03-21 08:12:34 +00:00
committed by GitHub
parent 151159709d
commit dd2818a41d
66 changed files with 246 additions and 242 deletions

View File

@@ -230,7 +230,7 @@ class Transport:
if sys.version_info >= (3, 8):
def __init__(
self, use_datetime: bool = False, use_builtin_types: bool = False, *, headers: Iterable[tuple[str, str]] = ...
self, use_datetime: bool = False, use_builtin_types: bool = False, *, headers: Iterable[tuple[str, str]] = ()
) -> None: ...
else:
def __init__(self, use_datetime: bool = False, use_builtin_types: bool = False) -> None: ...
@@ -259,7 +259,7 @@ class SafeTransport(Transport):
use_datetime: bool = False,
use_builtin_types: bool = False,
*,
headers: Iterable[tuple[str, str]] = ...,
headers: Iterable[tuple[str, str]] = (),
context: Any | None = None,
) -> None: ...
else:
@@ -288,7 +288,7 @@ class ServerProxy:
use_datetime: bool = False,
use_builtin_types: bool = False,
*,
headers: Iterable[tuple[str, str]] = ...,
headers: Iterable[tuple[str, str]] = (),
context: Any | None = None,
) -> None: ...
else:

View File

@@ -108,9 +108,9 @@ class ServerHTMLDoc(pydoc.HTMLDoc): # undocumented
object: object,
name: str,
mod: str | None = None,
funcs: Mapping[str, str] = ...,
classes: Mapping[str, str] = ...,
methods: Mapping[str, str] = ...,
funcs: Mapping[str, str] = {},
classes: Mapping[str, str] = {},
methods: Mapping[str, str] = {},
cl: type | None = None,
) -> str: ...
def docserver(self, server_name: str, package_documentation: str, methods: dict[str, str]) -> str: ...