Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99dcf32

Browse filesBrowse 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 d3e7601 commit 99dcf32
Copy full SHA for 99dcf32

File tree

Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed

‎mypy/typeshed/stdlib/_ctypes.pyi

Copy file name to clipboardExpand all lines: mypy/typeshed/stdlib/_ctypes.pyi
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,7 @@ class Array(_CData, Generic[_CT], metaclass=_PyCArrayType):
291291
def _type_(self) -> type[_CT]: ...
292292
@_type_.setter
293293
def _type_(self, value: type[_CT]) -> None: ...
294-
# Note: only available if _CT == c_char
295-
@property
296-
def raw(self) -> bytes: ...
297-
@raw.setter
298-
def raw(self, value: ReadableBuffer) -> None: ...
294+
raw: bytes # Note: only available if _CT == c_char
299295
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
300296
# TODO: These methods cannot be annotated correctly at the moment.
301297
# 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.