Skip to content

Commit f5e5c11

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

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
@@ -151,11 +151,7 @@ class Array(Generic[_CT], _CData):
151151
def _type_(self) -> type[_CT]: ...
152152
@_type_.setter
153153
def _type_(self, value: type[_CT]) -> None: ...
154-
# Note: only available if _CT == c_char
155-
@property
156-
def raw(self) -> bytes: ...
157-
@raw.setter
158-
def raw(self, value: ReadableBuffer) -> None: ...
154+
raw: bytes # Note: only available if _CT == c_char
159155
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
160156
# TODO These methods cannot be annotated correctly at the moment.
161157
# 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)