Skip to content

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
@github-actions
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