Skip to content

Commit 32ee901

Browse files
authored
Remove metaclass=type keyword from InitVar (#14150)
1 parent 5ec038d commit 32ee901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/dataclasses.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def is_dataclass(obj: object) -> TypeIs[DataclassInstance | type[DataclassInstan
353353

354354
class FrozenInstanceError(AttributeError): ...
355355

356-
class InitVar(Generic[_T], metaclass=type):
356+
class InitVar(Generic[_T]):
357357
type: Type[_T]
358358
def __init__(self, type: Type[_T]) -> None: ...
359359
@overload

0 commit comments

Comments
 (0)