Skip to content

The four protocol-like ABCs outside of collections.abc inherit from ABC directly #13005

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

Merged
merged 4 commits into from
Nov 16, 2024

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Nov 12, 2024

Related to:
python/cpython#126706
#11269

Switching PathLike from abc.ABC to abc.ABCMeta wasn't accepted (reasonably so), so I'm wondering what happens to mypy-primer if we do this.

This comment has been minimized.

@tungol
Copy link
Contributor Author

tungol commented Nov 12, 2024

Seems okay? If I'd realized this would work in the first place, I wouldn't have proposed changing the inheritance of os.PathLike. I guess I just assumed there was some deeper issue that prevented this.

@tungol tungol changed the title The three protocol-like ABCs outside of collections.abc inherit from ABC directly The four protocol-like ABCs outside of collections.abc inherit from ABC directly Nov 13, 2024
Copy link
Contributor

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

@srittau srittau merged commit f554f54 into python:main Nov 16, 2024
63 checks passed
@tungol tungol deleted the proto-abc branch November 16, 2024 21:42
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