Skip to content

Commit 1dbb877

Browse files
AlexWaygoodmypybot
authored andcommitted
Revert typeshed ctypes change Since the plugin provides superior type checking: #13987 (comment) A manual cherry-pick of e437cdf.
1 parent d536d3f commit 1dbb877

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

mypy/typeshed/stdlib/_ctypes.pyi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,7 @@ class Array(_CData, Generic[_CT], metaclass=_PyCArrayType):
298298
def _type_(self) -> type[_CT]: ...
299299
@_type_.setter
300300
def _type_(self, value: type[_CT]) -> None: ...
301-
# Note: only available if _CT == c_char
302-
@property
303-
def raw(self) -> bytes: ...
304-
@raw.setter
305-
def raw(self, value: ReadableBuffer) -> None: ...
301+
raw: bytes # Note: only available if _CT == c_char
306302
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
307303
# TODO: These methods cannot be annotated correctly at the moment.
308304
# 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)