8000 Sync typeshed by cdce8p · Pull Request #17586 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Sync typeshed #17586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load 8000 files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert typeshed ctypes change Since the plugin provides superior type…
… checking: #13987 (comment) A manual cherry-pick of e437cdf.
  • Loading branch information
AlexWaygood authored and cdce8p committed Jul 25, 2024
commit ddc637a03648ced142ed8b32722f249389bd42e6
6 changes: 1 addition & 5 deletions mypy/typeshed/stdlib/_ctypes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,7 @@ class Array(_CData, Generic[_CT]):
def _type_(self) -> type[_CT]: ...
@_type_.setter
def _type_(self, value: type[_CT]) -> None: ...
# Note: only available if _CT == c_char
@property
def raw(self) -> bytes: ...
@raw.setter
def raw(self, value: ReadableBuffer) -> None: ...
raw: bytes # Note: only available if _CT == c_char
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
# TODO These methods cannot be annotated correctly at the moment.
# All of these "Any"s stand for the array's element type, but it's not possible to use _CT
Expand Down
0