Skip to content

fix: use correct base classes for classes in email.generator #10299

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 2 commits into from
Jun 11, 2023

Conversation

hoefling
Copy link
Contributor

@hoefling hoefling commented Jun 11, 2023

I noticed that email.feedparser.BytesFeedParser and email.generator.BytesGenerator do not inherit from email.feedparser.FeedParser and email.generator.Generator, respectively, although they do in the actual stdlib module implementation. This PR amends that.

Update: reverted changes in email.feedparser, will try it again in a different PR.

@github-actions

This comment has been minimized.

@hoefling hoefling marked this pull request as draft June 11, 2023 15:28
@hoefling hoefling force-pushed the use-correct-subclassing-for-email branch from 337607b to ac5cbd9 Compare June 11, 2023 15:38
@github-actions

This comment has been minimized.

@hoefling hoefling changed the title fix: use correct base classes for classes in email.feedparser and email.generator fix: use correct base classes for classes in email.generator Jun 11, 2023
@hoefling hoefling marked this pull request as ready for review June 11, 2023 15:52
@hoefling
Copy link
Contributor Author

Looks like this is related to #3968.

@github-actions
Copy link
Contributor

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

@AlexWaygood AlexWaygood merged commit 052d2b9 into python:main Jun 11, 2023
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