Skip to content

Commit dd12a2d

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 d132999 commit dd12a2d

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
@@ -167,11 +167,7 @@ class Array(_CData, Generic[_CT]):
167167
def _type_(self) -> type[_CT]: ...
168168
@_type_.setter
169169
def _type_(self, value: type[_CT]) -> None: ...
170-
# Note: only available if _CT == c_char
171-
@property
172-
def raw(self) -> bytes: ...
173-
@raw.setter
174-
def raw(self, value: ReadableBuffer) -> None: ...
170+
raw: bytes # Note: only available if _CT == c_char
175171
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
176172
# TODO These methods cannot be annotated correctly at the moment.
177173
# 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)