mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 08:38:26 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user