reformat with black

This commit is contained in:
Maxim Kurnikov
2018-07-29 23:34:58 +03:00
parent 4866354600
commit cf85607969
343 changed files with 6054 additions and 2158 deletions

View File

@@ -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]]: ...