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