mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Remove metaclass=type keyword from InitVar (#14150)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user