We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f68f31 commit f94dd65Copy full SHA for f94dd65
mypy/typeshed/stdlib/_ctypes.pyi
@@ -171,11 +171,7 @@ class Array(_CData, Generic[_CT]):
171
def _type_(self) -> type[_CT]: ...
172
@_type_.setter
173
def _type_(self, value: type[_CT]) -> None: ...
174
- # Note: only available if _CT == c_char
175
- @property
176
- def raw(self) -> bytes: ...
177
- @raw.setter
178
- def raw(self, value: ReadableBuffer) -> None: ...
+ raw: bytes # Note: only available if _CT == c_char
179
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
180
# TODO These methods cannot be annotated correctly at the moment.
181
# All of these "Any"s stand for the array's element type, but it's not possible to use _CT
0 commit comments