Skip to content

Commit f968d6c

Browse files
committed
Revert typeshed ctypes change (#14128)
Since the plugin provides superior type checking: #13987 (comment)
1 parent 3a24011 commit f968d6c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypy/typeshed/stdlib/ctypes/__init__.pyi

+1-5
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,7 @@ class Array(Generic[_CT], _CData):
271271
def _type_(self) -> type[_CT]: ...
272272
@_type_.setter
273273
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: ...
274+
raw: bytes # Note: only available if _CT == c_char
279275
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
280276
# TODO These methods cannot be annotated correctly at the moment.
281277
# 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)