Skip to content

Commit 3e4f0fb

Browse files
AlexWaygoodmypybot
authored and
mypybot
committed
Revert typeshed ctypes change Since the plugin provides superior type checking: #13987 (comment) A manual cherry-pick of e437cdf.
1 parent 559980e commit 3e4f0fb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypy/typeshed/stdlib/_ctypes.pyi

+1-5
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,7 @@ class Array(_CData, Generic[_CT], metaclass=_PyCArrayType):
286286
def _type_(self) -> type[_CT]: ...
287287
@_type_.setter
288288
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: ...
289+
raw: bytes # Note: only available if _CT == c_char
294290
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
295291
# TODO These methods cannot be annotated correctly at the moment.
296292
# All of these "Any"s stand for the array's element type, but it's not possible to use _CT

0 commit comments

Comments
 (0)