mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
committed by
Sebastian Rittau
parent
57384ce033
commit
1a932ce26a
@@ -15,7 +15,7 @@ _PayloadType = Union[List[Message], str, bytes]
|
||||
_CharsetType = Union[Charset, str, None]
|
||||
_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]
|
||||
_ParamType = Union[str, Tuple[Optional[str], Optional[str], str]]
|
||||
_HeaderType = Union[str, Header]
|
||||
_HeaderType = Any
|
||||
|
||||
class Message:
|
||||
preamble: Optional[str]
|
||||
@@ -33,7 +33,7 @@ class Message:
|
||||
def get_charset(self) -> _CharsetType: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __contains__(self, name: str) -> bool: ...
|
||||
def __getitem__(self, name: str) -> Optional[_HeaderType]: ...
|
||||
def __getitem__(self, name: str) -> _HeaderType: ...
|
||||
def __setitem__(self, name: str, val: _HeaderType) -> None: ...
|
||||
def __delitem__(self, name: str) -> None: ...
|
||||
def keys(self) -> List[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user