diff --git a/django-stubs/http/multipartparser.pyi b/django-stubs/http/multipartparser.pyi index 5181052..e157729 100644 --- a/django-stubs/http/multipartparser.pyi +++ b/django-stubs/http/multipartparser.pyi @@ -55,4 +55,4 @@ class Parser: def __init__(self, stream: LazyStream, boundary: bytes) -> None: ... def __iter__(self) -> Iterator[Tuple[str, Dict[str, Tuple[str, Dict[str, Union[bytes, str]]]], LazyStream]]: ... -def parse_header(line: bytes) -> Tuple[str, Dict[str, Any]]: ... +def parse_header(line: bytes) -> Tuple[str, Dict[str, bytes]]: ... diff --git a/django-stubs/http/request.pyi b/django-stubs/http/request.pyi index 6ae9e25..f4d849b 100644 --- a/django-stubs/http/request.pyi +++ b/django-stubs/http/request.pyi @@ -200,6 +200,9 @@ class _ImmutableQueryDict(QueryDict): def dict(self) -> Dict[str, str]: ... # type: ignore[override] class MediaType: + main_type: str + sub_type: str + params: Dict[str, bytes] def __init__(self, media_type_raw_line: str) -> None: ... @property def is_all_types(self) -> bool: ...