mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
reformat with black
This commit is contained in:
@@ -6,6 +6,7 @@ from typing import Any, Optional
|
||||
|
||||
from typing import Any, Dict, List, Optional, Set, Tuple, Union
|
||||
from urllib.parse import ParseResult, SplitResult
|
||||
|
||||
ETAG_MATCH: Any
|
||||
MONTHS: Any
|
||||
__D: str
|
||||
@@ -37,8 +38,16 @@ def urlsafe_base64_decode(s: Union[str, bytes]) -> 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[Set[str]], require_https: bool = ...
|
||||
) -> bool: ...
|
||||
def _urlparse(url: str, scheme: str = ..., allow_fragments: bool = ...) -> ParseResult: ...
|
||||
def _urlsplit(url: str, scheme: str = ..., allow_fragments: bool = ...) -> SplitResult: ...
|
||||
def _is_safe_url(url: str, allowed_hosts: Set[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]]: ...
|
||||
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