Skip to content

remove false inheritance from io.IncrementalNewlineDecoder #12871

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 1 commit into from
Oct 22, 2024

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Oct 22, 2024

related to #3968

According to the documentation, io.IncrementalNewlineDecoder inherits from codecs.IncrementalDecoder: https://docs.python.org/3/library/io.html#io.IncrementalNewlineDecoder

This isn't actually true. That said, it is true of _pyio.IncrementalNewlineDecoder: https://github.com/python/cpython/blob/d0bfff47fb2aea9272b56ac05984eaacc32379cc/Lib/_pyio.py#L1906

some previous discussion in #11135

Copy link
Contributor

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

@srittau srittau merged commit 7417c37 into python:main Oct 22, 2024
62 checks passed
@tungol tungol deleted the codecs branch October 22, 2024 17: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