Remove metaclass=type keyword from InitVar (#14150)

This commit is contained in:
sobolevn
2025-05-26 17:18:51 +03:00
committed by GitHub
parent 5ec038df5b
commit 32ee901d05
+1 -1
View File
@@ -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