Skip to content
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

ctypes.CDLL._func_restype_ is a type, not an instance #13206

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Dec 6, 2024

Surfaced by python/mypy#18251

Also expand the union for ctypes.c_time_t so the actual runtime class is included, whatever that ends up being. I'm not sure if the full range of c_short through c_longlong is needed; is there a machine out there where a short is 32-bits wide? I don't know enough to say.

@tungol tungol changed the title ctypes.CDLL._func_restype_ is a type, not an instance ctypes.CDLL._func_restype_ is a type, not an instance Dec 6, 2024
Copy link
Contributor

github-actions bot commented Dec 6, 2024

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit 1bf8d50 into python:main Dec 6, 2024
63 checks passed
@tungol tungol deleted the ctypes branch December 6, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants