mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-05 22:54:17 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -3,7 +3,7 @@ import logging.handlers
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from typing import IO, Any, Callable, ContextManager, Dict, Iterable, Mapping, Sequence, Tuple, Type, TypeVar
|
||||
from typing import IO, Any, Callable, ContextManager, Dict, Iterable, Mapping, Sequence, Type, TypeVar
|
||||
|
||||
import boto.connection
|
||||
|
||||
@@ -40,7 +40,7 @@ _LockType = Any # TODO replace this with _thread.LockType once stubs exist
|
||||
JSONDecodeError: Type[ValueError]
|
||||
qsa_of_interest: list[str]
|
||||
|
||||
def unquote_v(nv: str) -> str | Tuple[str, str]: ...
|
||||
def unquote_v(nv: str) -> str | tuple[str, str]: ...
|
||||
def canonical_string(
|
||||
method: str, path: str, headers: Mapping[str, str | None], expires: int | None = ..., provider: _Provider | None = ...
|
||||
) -> str: ...
|
||||
@@ -68,7 +68,7 @@ ISO8601_MS: str
|
||||
RFC1123: str
|
||||
LOCALE_LOCK: _LockType
|
||||
|
||||
def setlocale(name: str | Tuple[str, str]) -> ContextManager[str]: ...
|
||||
def setlocale(name: str | tuple[str, str]) -> ContextManager[str]: ...
|
||||
def get_ts(ts: time.struct_time | None = ...) -> str: ...
|
||||
def parse_ts(ts: str) -> datetime.datetime: ...
|
||||
def find_class(module_name: str, class_name: str | None = ...) -> Type[Any] | None: ...
|
||||
@@ -137,11 +137,11 @@ def get_utf8_value(value: str) -> bytes: ...
|
||||
def mklist(value: Any) -> list[Any]: ...
|
||||
def pythonize_name(name: str) -> str: ...
|
||||
def write_mime_multipart(
|
||||
content: list[Tuple[str, str]], compress: bool = ..., deftype: str = ..., delimiter: str = ...
|
||||
content: list[tuple[str, str]], compress: bool = ..., deftype: str = ..., delimiter: str = ...
|
||||
) -> str: ...
|
||||
def guess_mime_type(content: str, deftype: str) -> str: ...
|
||||
def compute_md5(fp: IO[Any], buf_size: int = ..., size: int | None = ...) -> Tuple[str, str, int]: ...
|
||||
def compute_hash(fp: IO[Any], buf_size: int = ..., size: int | None = ..., hash_algorithm: Any = ...) -> Tuple[str, str, int]: ...
|
||||
def compute_md5(fp: IO[Any], buf_size: int = ..., size: int | None = ...) -> tuple[str, str, int]: ...
|
||||
def compute_hash(fp: IO[Any], buf_size: int = ..., size: int | None = ..., hash_algorithm: Any = ...) -> tuple[str, str, int]: ...
|
||||
def find_matching_headers(name: str, headers: Mapping[str, str | None]) -> list[str]: ...
|
||||
def merge_headers_by_name(name: str, headers: Mapping[str, str | None]) -> str: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user