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