add missing files throughout the codebase (#102)

This commit is contained in:
Maxim Kurnikov authored and GitHub committed 2019-07-09 05:18:15 +03:00
1 parent d8230a4147
commit 2799646723
67 files changed
+748 -120

No files matched your search

+11 -2
View File
@@ -1,8 +1,8 @@
from io import BytesIO
from typing import Any, BinaryIO, Dict, Iterable, List, Mapping, Optional, Pattern, Tuple, Union, overload
from typing import Any, BinaryIO, Dict, Iterable, List, Mapping, Optional, Pattern, Set, Tuple, Union, overload
from django.contrib.sessions.backends.base import SessionBase
from django.utils.datastructures import ImmutableList, MultiValueDict
from django.utils.datastructures import CaseInsensitiveMapping, ImmutableList, MultiValueDict
from django.core.files import uploadedfile, uploadhandler
from django.urls import ResolverMatch
@@ -15,6 +15,13 @@ class RawPostDataException(Exception): ...
UploadHandlerList = Union[List[uploadhandler.FileUploadHandler], ImmutableList[uploadhandler.FileUploadHandler]]
class HttpHeaders(CaseInsensitiveMapping):
HTTP_PREFIX: str = ...
UNPREFIXED_HEADERS: Set[str] = ...
def __init__(self, environ: Mapping[str, Any]) -> None: ...
@classmethod
def parse_header_name(cls, header: str) -> Optional[str]: ...
class HttpRequest(BytesIO):
GET: QueryDict = ...
POST: QueryDict = ...
@@ -48,6 +55,8 @@ class HttpRequest(BytesIO):
self, META: Mapping[str, Any], post_data: BinaryIO
) -> Tuple[QueryDict, MultiValueDict[str, uploadedfile.UploadedFile]]: ...
@property
def headers(self) -> HttpHeaders: ...
@property
def body(self) -> bytes: ...
def _load_post_and_files(self) -> None: ...