File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ def POINTER(type: Type[_CT]) -> Type[pointer[_CT]]: ...
166
166
# ctypes._Pointer in that it is the base class for all pointer types. Unlike the real _Pointer,
167
167
# it can be instantiated directly (to mimic the behavior of the real pointer function).
168
168
class pointer (Generic [_CT ], _PointerLike , _CData ):
169
- _type_ : ClassVar [ Type [_CT ] ] = ...
169
+ _type_ : Type [_CT ] = ...
170
170
contents : _CT = ...
171
171
def __init__ (self , arg : _CT = ...) -> None : ...
172
172
@overload
@@ -262,8 +262,8 @@ class BigEndianStructure(Structure): ...
262
262
class LittleEndianStructure (Structure ): ...
263
263
264
264
class Array (Generic [_CT ], _CData ):
265
- _length_ : ClassVar [ int ] = ...
266
- _type_ : ClassVar [ Type [_CT ] ] = ...
265
+ _length_ : int = ...
266
+ _type_ : Type [_CT ] = ...
267
267
raw : bytes = ... # Note: only available if _CT == c_char
268
268
value : Any = ... # Note: bytes if _CT == c_char, Text if _CT == c_wchar, unavailable otherwise
269
269
# TODO These methods cannot be annotated correctly at the moment.
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ def POINTER(type: Type[_CT]) -> Type[pointer[_CT]]: ...
173
173
# ctypes._Pointer in that it is the base class for all pointer types. Unlike the real _Pointer,
174
174
# it can be instantiated directly (to mimic the behavior of the real pointer function).
175
175
class pointer (Generic [_CT ], _PointerLike , _CData ):
176
- _type_ : ClassVar [ Type [_CT ] ]
176
+ _type_ : Type [_CT ]
177
177
contents : _CT
178
178
def __init__ (self , arg : _CT = ...) -> None : ...
179
179
@overload
@@ -268,8 +268,8 @@ class BigEndianStructure(Structure): ...
268
268
class LittleEndianStructure (Structure ): ...
269
269
270
270
class Array (Generic [_CT ], _CData ):
271
- _length_ : ClassVar [ int ]
272
- _type_ : ClassVar [ Type [_CT ] ]
271
+ _length_ : int
272
+ _type_ : Type [_CT ]
273
273
raw : bytes # Note: only available if _CT == c_char
274
274
value : Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
275
275
# TODO These methods cannot be annotated correctly at the moment.
You can’t perform that action at this time.
0 commit comments