mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 16:57:12 +08:00
add utils_tests test folder to typechecking (#106)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Optional, Set, Tuple, Union
|
||||
from typing import Any, Dict, List, Optional, Set, Tuple, Union, Iterable
|
||||
|
||||
ETAG_MATCH: Any
|
||||
MONTHS: Any
|
||||
@@ -14,18 +14,20 @@ def urlquote_plus(url: str, safe: str = ...) -> str: ...
|
||||
def urlunquote(quoted_url: str) -> str: ...
|
||||
def urlunquote_plus(quoted_url: str) -> str: ...
|
||||
def urlencode(query: Any, doseq: bool = ...) -> str: ...
|
||||
def cookie_date(epoch_seconds: float = ...) -> str: ...
|
||||
def http_date(epoch_seconds: float = ...) -> str: ...
|
||||
def cookie_date(epoch_seconds: Optional[float] = ...) -> str: ...
|
||||
def http_date(epoch_seconds: Optional[float] = ...) -> str: ...
|
||||
def parse_http_date(date: str) -> int: ...
|
||||
def parse_http_date_safe(date: str) -> Optional[int]: ...
|
||||
def base36_to_int(s: Union[Dict[int, int], Tuple[int, int, int], float, str]) -> int: ...
|
||||
def int_to_base36(i: Union[Dict[int, int], Tuple[int, int, int], float, str]) -> str: ...
|
||||
def urlsafe_base64_encode(s: bytes) -> bytes: ...
|
||||
def base36_to_int(s: str) -> int: ...
|
||||
def int_to_base36(i: int) -> str: ...
|
||||
def urlsafe_base64_encode(s: bytes) -> str: ...
|
||||
def urlsafe_base64_decode(s: Union[bytes, str]) -> bytes: ...
|
||||
def parse_etags(etag_str: str) -> List[str]: ...
|
||||
def quote_etag(etag_str: str) -> str: ...
|
||||
def is_same_domain(host: str, pattern: str) -> bool: ...
|
||||
def is_safe_url(url: Optional[str], allowed_hosts: Optional[Set[str]], require_https: bool = ...) -> bool: ...
|
||||
def is_safe_url(
|
||||
url: Optional[str], allowed_hosts: Optional[Union[str, Iterable[str]]], require_https: bool = ...
|
||||
) -> bool: ...
|
||||
def limited_parse_qsl(
|
||||
qs: str, keep_blank_values: bool = ..., encoding: str = ..., errors: str = ..., fields_limit: Optional[int] = ...
|
||||
) -> List[Tuple[str, str]]: ...
|
||||
|
||||
Reference in New Issue
Block a user