mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 06:35:22 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -96,7 +96,7 @@ def parse_qsl(
|
||||
errors: str = ...,
|
||||
max_num_fields: int | None = ...,
|
||||
separator: str = ...,
|
||||
) -> list[Tuple[AnyStr, AnyStr]]: ...
|
||||
) -> list[tuple[AnyStr, AnyStr]]: ...
|
||||
@overload
|
||||
def quote(string: str, safe: _Str = ..., encoding: str | None = ..., errors: str | None = ...) -> str: ...
|
||||
@overload
|
||||
@@ -114,7 +114,7 @@ def urldefrag(url: str) -> DefragResult: ...
|
||||
@overload
|
||||
def urldefrag(url: bytes | None) -> DefragResultBytes: ...
|
||||
def urlencode(
|
||||
query: Mapping[Any, Any] | Mapping[Any, Sequence[Any]] | Sequence[Tuple[Any, Any]] | Sequence[Tuple[Any, Sequence[Any]]],
|
||||
query: Mapping[Any, Any] | Mapping[Any, Sequence[Any]] | Sequence[tuple[Any, Any]] | Sequence[tuple[Any, Sequence[Any]]],
|
||||
doseq: bool = ...,
|
||||
safe: AnyStr = ...,
|
||||
encoding: str = ...,
|
||||
@@ -132,11 +132,11 @@ def urlsplit(url: str, scheme: str | None = ..., allow_fragments: bool = ...) ->
|
||||
def urlsplit(url: bytes | None, scheme: bytes | None = ..., allow_fragments: bool = ...) -> SplitResultBytes: ...
|
||||
@overload
|
||||
def urlunparse(
|
||||
components: Tuple[AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None]
|
||||
components: tuple[AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None]
|
||||
) -> AnyStr: ...
|
||||
@overload
|
||||
def urlunparse(components: Sequence[AnyStr | None]) -> AnyStr: ...
|
||||
@overload
|
||||
def urlunsplit(components: Tuple[AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None]) -> AnyStr: ...
|
||||
def urlunsplit(components: tuple[AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None, AnyStr | None]) -> AnyStr: ...
|
||||
@overload
|
||||
def urlunsplit(components: Sequence[AnyStr | None]) -> AnyStr: ...
|
||||
|
||||
Reference in New Issue
Block a user