mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-28 13:52:12 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import sys
|
||||
from _typeshed import StrPath, SupportsRead, SupportsWrite
|
||||
from typing import Any, AnyStr, Callable, Iterable, NamedTuple, Sequence, Set, Tuple, TypeVar, Union, overload
|
||||
from typing import Any, AnyStr, Callable, Iterable, NamedTuple, Sequence, Set, TypeVar, Union, overload
|
||||
|
||||
_PathT = TypeVar("_PathT", str, os.PathLike[str])
|
||||
# Return value of some functions that may either return a path-like object that was passed in or
|
||||
@@ -83,11 +83,11 @@ def make_archive(
|
||||
group: str | None = ...,
|
||||
logger: Any | None = ...,
|
||||
) -> str: ...
|
||||
def get_archive_formats() -> list[Tuple[str, str]]: ...
|
||||
def get_archive_formats() -> list[tuple[str, str]]: ...
|
||||
def register_archive_format(
|
||||
name: str,
|
||||
function: Callable[..., Any],
|
||||
extra_args: Sequence[Tuple[str, Any] | list[Any]] | None = ...,
|
||||
extra_args: Sequence[tuple[str, Any] | list[Any]] | None = ...,
|
||||
description: str = ...,
|
||||
) -> None: ...
|
||||
def unregister_archive_format(name: str) -> None: ...
|
||||
@@ -100,8 +100,8 @@ else:
|
||||
def unpack_archive(filename: str, extract_dir: StrPath | None = ..., format: str | None = ...) -> None: ...
|
||||
|
||||
def register_unpack_format(
|
||||
name: str, extensions: list[str], function: Any, extra_args: Sequence[Tuple[str, Any]] | None = ..., description: str = ...
|
||||
name: str, extensions: list[str], function: Any, extra_args: Sequence[tuple[str, Any]] | None = ..., description: str = ...
|
||||
) -> None: ...
|
||||
def unregister_unpack_format(name: str) -> None: ...
|
||||
def get_unpack_formats() -> list[Tuple[str, list[str], str]]: ...
|
||||
def get_terminal_size(fallback: Tuple[int, int] = ...) -> os.terminal_size: ...
|
||||
def get_unpack_formats() -> list[tuple[str, list[str], str]]: ...
|
||||
def get_terminal_size(fallback: tuple[int, int] = ...) -> os.terminal_size: ...
|
||||
|
||||
Reference in New Issue
Block a user