stdlib: add argument default values (#9501)

This commit is contained in:
Jelle Zijlstra
2023-01-18 00:37:34 -08:00
committed by GitHub
parent 6cb934291f
commit ddfaca3200
272 changed files with 2529 additions and 2467 deletions

View File

@@ -13,7 +13,7 @@ class Charset:
output_charset: str | None
input_codec: str | None
output_codec: str | None
def __init__(self, input_charset: str = ...) -> None: ...
def __init__(self, input_charset: str = "us-ascii") -> None: ...
def get_body_encoding(self) -> str: ...
def get_output_charset(self) -> str | None: ...
def header_encode(self, string: str) -> str: ...
@@ -23,7 +23,7 @@ class Charset:
def __ne__(self, __other: object) -> bool: ...
def add_charset(
charset: str, header_enc: int | None = ..., body_enc: int | None = ..., output_charset: str | None = ...
charset: str, header_enc: int | None = None, body_enc: int | None = None, output_charset: str | None = None
) -> None: ...
def add_alias(alias: str, canonical: str) -> None: ...
def add_codec(charset: str, codecname: str) -> None: ...