8000
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 af7604d commit fe40f81Copy full SHA for fe40f81
mypy/typeshed/stdlib/ctypes/__init__.pyi
@@ -271,11 +271,7 @@ class Array(Generic[_CT], _CData):
271
def _type_(self) -> type[_CT]: ...
272
@_type_.setter
273
def _type_(self, value: type[_CT]) -> None: ...
274
- # Note: only available if _CT == c_char
275
- @property
276
- def raw(self) -> bytes: ...
277
- @raw.setter
278
- def raw(self, value: ReadableBuffer) -> None: ...
+ raw: bytes # Note: only available if _CT == c_char
279
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
280
# TODO These methods cannot be annotated correctly at the moment.
281
# All of these "Any"s stand for the array's element type, but it's not possible to use _CT
0 commit comments