FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

inheritance for multiprocessing.managers.BaseListProxy by tungol · Pull Request #12892 · python/typeshed · GitHub

inheritance for multiprocessing.managers.BaseListProxy - #12892

Closed
tungol wants to merge 2 commits into
python:mainfrom
tungol:multiprocessing
Closed

inheritance for multiprocessing.managers.BaseListProxy#12892
tungol wants to merge 2 commits into
python:mainfrom
tungol:multiprocessing

Conversation

tungol commented Oct 24, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

tungol commented Nov 6, 2024

Copy link
Copy Markdown
Contributor Author

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 closed this Nov 6, 2024
tungol deleted the multiprocessing branch November 7, 2024 21:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL