We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a24011 commit f968d6cCopy full SHA for f968d6c
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