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 39386d5 commit fce6e4fCopy full SHA for fce6e4f
mypy/typeshed/stdlib/_ctypes.pyi
@@ -286,11 +286,7 @@ class Array(_CData, Generic[_CT], metaclass=_PyCArrayType):
286
def _type_(self) -> type[_CT]: ...
287
@_type_.setter
288
def _type_(self, value: type[_CT]) -> None: ...
289
- # Note: only available if _CT == c_char
290
- @property
291
- def raw(self) -> bytes: ...
292
- @raw.setter
293
- def raw(self, value: ReadableBuffer) -> None: ...
+ raw: bytes # Note: only available if _CT == c_char
294
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
295
# TODO These methods cannot be annotated correctly at the moment.
296
# All of these "Any"s stand for the array's element type, but it's not possible to use _CT
0 commit comments