Skip to content

Commit 7d56008

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypy/typeshed/stdlib/_ctypes.pyi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,7 @@ class Array(_CData, Generic[_CT], metaclass=_PyCArrayType):
289289
def _type_(self) -> type[_CT]: ...
290290
@_type_.setter
291291
def _type_(self, value: type[_CT]) -> None: ...
292-
# Note: only available if _CT == c_char
293-
@property
294-
def raw(self) -> bytes: ...
295-
@raw.setter
296-
def raw(self, value: ReadableBuffer) -> None: ...
292+
raw: bytes # Note: only available if _CT == c_char
297293
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
298294
# TODO: These methods cannot be annotated correctly at the moment.
299295
# 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)