We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58b4200 commit 39bf862Copy full SHA for 39bf862
mypy/typeshed/stdlib/ctypes/__init__.pyi
@@ -266,11 +266,7 @@ class Array(Generic[_CT], _CData):
266
def _type_(self) -> type[_CT]: ...
267
@_type_.setter
268
def _type_(self, value: type[_CT]) -> None: ...
269
- # Note: only available if _CT == c_char
270
- @property
271
- def raw(self) -> bytes: ...
272
- @raw.setter
273
- def raw(self, value: ReadableBuffer) -> None: ...
+ raw: bytes # Note: only available if _CT == c_char
274
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
275
# TODO These methods cannot be annotated correctly at the moment.
276
# All of these "Any"s stand for the array's element type, but it's not possible to use _CT
0 commit comments