mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user