Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -19,7 +19,7 @@ if sys.version_info >= (3, 10):
@overload
def asdict(obj: Any) -> dict[str, Any]: ...
@overload
def asdict(obj: Any, *, dict_factory: Callable[[list[Tuple[str, Any]]], _T]) -> _T: ...
def asdict(obj: Any, *, dict_factory: Callable[[list[tuple[str, Any]]], _T]) -> _T: ...
@overload
def astuple(obj: Any) -> Tuple[Any, ...]: ...
@overload
@@ -190,7 +190,7 @@ class InitVar(Generic[_T]):
if sys.version_info >= (3, 10):
def make_dataclass(
cls_name: str,
fields: Iterable[str | Tuple[str, type] | Tuple[str, type, Field[Any]]],
fields: Iterable[str | tuple[str, type] | tuple[str, type, Field[Any]]],
*,
bases: Tuple[type, ...] = ...,
namespace: dict[str, Any] | None = ...,
@@ -207,7 +207,7 @@ if sys.version_info >= (3, 10):
else:
def make_dataclass(
cls_name: str,
fields: Iterable[str | Tuple[str, type] | Tuple[str, type, Field[Any]]],
fields: Iterable[str | tuple[str, type] | tuple[str, type, Field[Any]]],
*,
bases: Tuple[type, ...] = ...,
namespace: dict[str, Any] | None = ...,