mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 18:42:41 +08:00
Remove metaclass=type keyword from InitVar (#14150)
This commit is contained in:
1 parent
5ec038df5b
commit
32ee901d05
1 file changed
+1
-1
@@ -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