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

Fix typing of multiprocessing.Value and Array #11576

Merged
merged 5 commits into from
Mar 15, 2024

Conversation

prauscher
Copy link
Contributor

could fix #8799 and #9898, but request review for side effects. Without this change, static type checkers would treat Value(ctypes.c_float, 0.0) like ctypes.c_float, but Value offers a field value for storage

could fix python#8799 and python#9898, but request review for side effects.
Without this change, static type checkers would treat `Value(ctypes.c_float, 0.0)` like `ctypes.c_float`, but `Value` offers a field `value` for storage

This comment has been minimized.

Copy link
Contributor

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

@prauscher
Copy link
Contributor Author

I do not want to be too demanding, but just to be sure I'm not missing anything: Is there anything left for me to help going forward to merge?

@JelleZijlstra
Copy link
Member

One of the maintainers will hopefully find time to look at this soon.

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My experience with ctypes and multiprocessing is limited, but based on the lack of complaints from our tests, the review by @f0rmiga, and playing around with ctypes a bit, this change makes sense to me.

@srittau srittau merged commit 6943dcd into python:main Mar 15, 2024
55 checks passed
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.

Typing of multiprocessing.Value broken since mypy 0.981
4 participants