From 32ee901d0565a1912e0bdf334d6ad2f5d7381916 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 26 May 2025 17:18:51 +0300 Subject: [PATCH] Remove `metaclass=type` keyword from `InitVar` (#14150) --- stdlib/dataclasses.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/dataclasses.pyi b/stdlib/dataclasses.pyi index d69bec7f6..c76b0b0e6 100644 --- a/stdlib/dataclasses.pyi +++ b/stdlib/dataclasses.pyi @@ -353,7 +353,7 @@ def is_dataclass(obj: object) -> TypeIs[DataclassInstance | type[DataclassInstan class FrozenInstanceError(AttributeError): ... -class InitVar(Generic[_T], metaclass=type): +class InitVar(Generic[_T]): type: Type[_T] def __init__(self, type: Type[_T]) -> None: ... @overload