mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-01 16:03:47 +08:00
Add type and parameter fields to MediaType (#1103)
This commit is contained in:
1 parent
3c942483d4
commit
abd0609f80
2 files changed
+4
-1
No files matched your search
@@ -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]]: ...
|
||||
@@ -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: ...
|
||||
|
||||
Reference in new issue
Block a user