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