mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-02 01:23:24 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Stubs for urlparse (Python 2)
|
||||
|
||||
from typing import AnyStr, Dict, List, NamedTuple, Tuple, Sequence, Union, overload, Optional
|
||||
from typing import AnyStr, Dict, List, NamedTuple, Optional, Sequence, Tuple, Union, overload
|
||||
|
||||
_String = Union[str, unicode]
|
||||
|
||||
@@ -31,6 +31,7 @@ class _SplitResult(NamedTuple):
|
||||
path: _String
|
||||
query: _String
|
||||
fragment: _String
|
||||
|
||||
class SplitResult(_SplitResult, ResultMixin):
|
||||
def geturl(self) -> _String: ...
|
||||
|
||||
@@ -41,13 +42,12 @@ class _ParseResult(NamedTuple):
|
||||
params: _String
|
||||
query: _String
|
||||
fragment: _String
|
||||
|
||||
class ParseResult(_ParseResult, ResultMixin):
|
||||
def geturl(self) -> _String: ...
|
||||
|
||||
def urlparse(url: _String, scheme: _String = ...,
|
||||
allow_fragments: bool = ...) -> ParseResult: ...
|
||||
def urlsplit(url: _String, scheme: _String = ...,
|
||||
allow_fragments: bool = ...) -> SplitResult: ...
|
||||
def urlparse(url: _String, scheme: _String = ..., allow_fragments: bool = ...) -> ParseResult: ...
|
||||
def urlsplit(url: _String, scheme: _String = ..., allow_fragments: bool = ...) -> SplitResult: ...
|
||||
@overload
|
||||
def urlunparse(data: Tuple[_String, _String, _String, _String, _String, _String]) -> _String: ...
|
||||
@overload
|
||||
@@ -56,11 +56,8 @@ def urlunparse(data: Sequence[_String]) -> _String: ...
|
||||
def urlunsplit(data: Tuple[_String, _String, _String, _String, _String]) -> _String: ...
|
||||
@overload
|
||||
def urlunsplit(data: Sequence[_String]) -> _String: ...
|
||||
def urljoin(base: _String, url: _String,
|
||||
allow_fragments: bool = ...) -> _String: ...
|
||||
def urljoin(base: _String, url: _String, allow_fragments: bool = ...) -> _String: ...
|
||||
def urldefrag(url: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def unquote(s: AnyStr) -> AnyStr: ...
|
||||
def parse_qs(qs: AnyStr, keep_blank_values: bool = ...,
|
||||
strict_parsing: bool = ...) -> Dict[AnyStr, List[AnyStr]]: ...
|
||||
def parse_qsl(qs: AnyStr, keep_blank_values: int = ...,
|
||||
strict_parsing: bool = ...) -> List[Tuple[AnyStr, AnyStr]]: ...
|
||||
def parse_qs(qs: AnyStr, keep_blank_values: bool = ..., strict_parsing: bool = ...) -> Dict[AnyStr, List[AnyStr]]: ...
|
||||
def parse_qsl(qs: AnyStr, keep_blank_values: int = ..., strict_parsing: bool = ...) -> List[Tuple[AnyStr, AnyStr]]: ...
|
||||
|
||||
Reference in New Issue
Block a user