Skip to content

Commit c2f3fa4

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

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
@@ -171,11 +171,7 @@ class Array(_CData, Generic[_CT]):
171171
def _type_(self) -> type[_CT]: ...
172172
@_type_.setter
173173
def _type_(self, value: type[_CT]) -> None: ...
174-
# Note: only available if _CT == c_char
175-
@property
176-
def raw(self) -> bytes: ...
177-
@raw.setter
178-
def raw(self, value: ReadableBuffer) -> None: ...
174+
raw: bytes # Note: only available if _CT == c_char
179175
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
180176
# TODO These methods cannot be annotated correctly at the moment.
181177
# 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)