Skip to content

inheritance for multiprocessing.managers.BaseListProxy #12892

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

Closed
wants to merge 2 commits into from

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Oct 24, 2024

This is similar to #12873

BaseListProxy doesn't inherit from MutableSequence, and MutableSequence.register(BaseListProxy) doesn't happen either.

It's not missing any of the abstract methods, so in theory it could be registered. It is missing the mix-in methods __iter__ and __iadd__. It's also missing clear and copy, but those have been added to to the 3.13 branch of cpython.

Let's see what this looks like.

This comment has been minimized.

Copy link
Contributor

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

@tungol
Copy link
Contributor Author

tungol commented Nov 6, 2024

This is now fixed in cpython for 3.12 and up. It probably doesn't make sense to branch for the sake of 3.8 to 3.11.

@tungol tungol closed this Nov 6, 2024
@tungol tungol deleted the multiprocessing branch November 7, 2024 21:28
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