mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-21 11:21:20 +08:00
enable test folders: select_for_update, i18n, httpwrappers, auth_tests, extra_regress (#107)
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
from io import BytesIO
|
||||
from typing import Any, BinaryIO, Dict, Iterable, List, Mapping, Optional, Pattern, Set, Tuple, Union, overload
|
||||
from typing import (
|
||||
Any,
|
||||
BinaryIO,
|
||||
Dict,
|
||||
Iterable,
|
||||
List,
|
||||
Mapping,
|
||||
Optional,
|
||||
Pattern,
|
||||
Set,
|
||||
Tuple,
|
||||
Union,
|
||||
overload,
|
||||
TypeVar,
|
||||
Type,
|
||||
)
|
||||
|
||||
from django.contrib.sessions.backends.base import SessionBase
|
||||
from django.utils.datastructures import CaseInsensitiveMapping, ImmutableList, MultiValueDict
|
||||
@@ -60,8 +75,10 @@ class HttpRequest(BytesIO):
|
||||
def body(self) -> bytes: ...
|
||||
def _load_post_and_files(self) -> None: ...
|
||||
|
||||
_Q = TypeVar("_Q", bound="QueryDict")
|
||||
|
||||
class QueryDict(MultiValueDict[str, str]):
|
||||
encoding: Any = ...
|
||||
encoding: str = ...
|
||||
_mutable: bool = ...
|
||||
def __init__(
|
||||
self, query_string: Optional[Union[str, bytes]] = ..., mutable: bool = ..., encoding: Optional[str] = ...
|
||||
@@ -70,6 +87,14 @@ class QueryDict(MultiValueDict[str, str]):
|
||||
def setlistdefault(self, key: str, default_list: Optional[List[str]] = ...) -> List[str]: ...
|
||||
def appendlist(self, key: str, value: str) -> None: ...
|
||||
def urlencode(self, safe: Optional[str] = ...) -> str: ...
|
||||
@classmethod
|
||||
def fromkeys(
|
||||
cls: Type[_Q],
|
||||
iterable: Iterable[Union[bytes, str]],
|
||||
value: Any = ...,
|
||||
mutable: bool = ...,
|
||||
encoding: Optional[str] = ...,
|
||||
) -> _Q: ...
|
||||
|
||||
@overload
|
||||
def bytes_to_text(s: bytes, encoding: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user