mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 19:01:16 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -33,13 +33,7 @@ class HttpRequest:
|
||||
def get_port(self) -> str: ...
|
||||
def get_full_path(self, force_append_slash: bool = ...) -> str: ...
|
||||
def get_full_path_info(self, force_append_slash: bool = ...) -> str: ...
|
||||
def get_signed_cookie(
|
||||
self,
|
||||
key: str,
|
||||
default: Any = ...,
|
||||
salt: str = ...,
|
||||
max_age: Optional[int] = ...,
|
||||
) -> Optional[str]: ...
|
||||
def get_signed_cookie(self, key: str, default: Any = ..., salt: str = ..., max_age: Optional[int] = ...) -> Optional[str]: ...
|
||||
def get_raw_uri(self) -> str: ...
|
||||
def build_absolute_uri(self, location: Optional[str] = ...) -> str: ...
|
||||
@property
|
||||
@@ -70,10 +64,7 @@ class HttpRequest:
|
||||
class QueryDict(MultiValueDict):
|
||||
encoding: Any = ...
|
||||
def __init__(
|
||||
self,
|
||||
query_string: Optional[Union[bytes, str]] = ...,
|
||||
mutable: bool = ...,
|
||||
encoding: Optional[str] = ...,
|
||||
self, query_string: Optional[Union[bytes, str]] = ..., mutable: bool = ..., encoding: Optional[str] = ...
|
||||
) -> None: ...
|
||||
@classmethod
|
||||
def fromkeys(
|
||||
@@ -87,19 +78,13 @@ class QueryDict(MultiValueDict):
|
||||
def encoding(self): ...
|
||||
@encoding.setter
|
||||
def encoding(self, value: Any) -> None: ...
|
||||
def __setitem__(
|
||||
self, key: str, value: Optional[Union[int, str]]
|
||||
) -> None: ...
|
||||
def __setitem__(self, key: str, value: Optional[Union[int, str]]) -> None: ...
|
||||
def __delitem__(self, key: str) -> None: ...
|
||||
def __copy__(self) -> QueryDict: ...
|
||||
def __deepcopy__(self, memo: Dict[Any, Any]) -> QueryDict: ...
|
||||
def setlist(self, key: str, list_: List[str]) -> None: ...
|
||||
def setlistdefault(
|
||||
self, key: str, default_list: None = ...
|
||||
) -> List[str]: ...
|
||||
def appendlist(
|
||||
self, key: Union[bytes, str], value: Union[List[str], bytes, str]
|
||||
) -> None: ...
|
||||
def setlistdefault(self, key: str, default_list: None = ...) -> List[str]: ...
|
||||
def appendlist(self, key: Union[bytes, str], value: Union[List[str], bytes, str]) -> None: ...
|
||||
def pop(self, key: str, *args: Any) -> Optional[Union[List[str], str]]: ...
|
||||
def popitem(self) -> Any: ...
|
||||
def clear(self) -> None: ...
|
||||
@@ -107,8 +92,6 @@ class QueryDict(MultiValueDict):
|
||||
def copy(self) -> QueryDict: ...
|
||||
def urlencode(self, safe: Optional[str] = ...) -> str: ...
|
||||
|
||||
def bytes_to_text(
|
||||
s: Optional[Union[bytes, int, str]], encoding: str
|
||||
) -> Optional[Union[int, str]]: ...
|
||||
def bytes_to_text(s: Optional[Union[bytes, int, str]], encoding: str) -> Optional[Union[int, str]]: ...
|
||||
def split_domain_port(host: str) -> Tuple[str, str]: ...
|
||||
def validate_host(host: str, allowed_hosts: Union[List[str], str]) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user