Skip to content

Commit d198719

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

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
@@ -95,11 +95,7 @@ class Array(Generic[_CT], _CData):
9595
def _type_(self) -> type[_CT]: ...
9696
@_type_.setter
9797
def _type_(self, value: type[_CT]) -> None: ...
98-
# Note: only available if _CT == c_char
99-
@property
100-
def raw(self) -> bytes: ...
101-
@raw.setter
102-
def raw(self, value: ReadableBuffer) -> None: ...
98+
raw: bytes # Note: only available if _CT == c_char
10399
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
104100
# TODO These methods cannot be annotated correctly at the moment.
105101
# 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)