message.pyi: Change HeaderType to Any (#2924)

Fixes #2863
This commit is contained in:
Utkarsh Gupta
2019-10-10 15:54:44 +05:30
committed by Sebastian Rittau
parent 57384ce033
commit 1a932ce26a

View File

@@ -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]: ...