mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -34,7 +34,7 @@ class Message:
|
||||
def __delitem__(self, name: str) -> None: ...
|
||||
def keys(self) -> list[str]: ...
|
||||
def values(self) -> list[_HeaderType]: ...
|
||||
def items(self) -> list[Tuple[str, _HeaderType]]: ...
|
||||
def items(self) -> list[tuple[str, _HeaderType]]: ...
|
||||
def get(self, name: str, failobj: _T = ...) -> _HeaderType | _T: ...
|
||||
def get_all(self, name: str, failobj: _T = ...) -> list[_HeaderType] | _T: ...
|
||||
def add_header(self, _name: str, _value: str, **_params: _ParamsType) -> None: ...
|
||||
@@ -44,7 +44,7 @@ class Message:
|
||||
def get_content_subtype(self) -> str: ...
|
||||
def get_default_type(self) -> str: ...
|
||||
def set_default_type(self, ctype: str) -> None: ...
|
||||
def get_params(self, failobj: _T = ..., header: str = ..., unquote: bool = ...) -> list[Tuple[str, str]] | _T: ...
|
||||
def get_params(self, failobj: _T = ..., header: str = ..., unquote: bool = ...) -> list[tuple[str, str]] | _T: ...
|
||||
def get_param(self, param: str, failobj: _T = ..., header: str = ..., unquote: bool = ...) -> _T | _ParamType: ...
|
||||
def del_param(self, param: str, header: str = ..., requote: bool = ...) -> None: ...
|
||||
def set_type(self, type: str, header: str = ..., requote: bool = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user