Skip to content
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

Change email-related fields in Metadata to str #596

Merged
merged 1 commit into from Oct 6, 2022

Conversation

brettcannon
Copy link
Member

Otherwise not all valid metadata can be properly represented by Metadata due to the amount of flexibility allowed by RFC-822.

For #569

Otherwise not all valid metadata can be properly represented by `Metadata` due to the amount of flexibility allowed by RFC-822.
@brettcannon brettcannon self-assigned this Oct 5, 2022
@brettcannon brettcannon mentioned this pull request Oct 5, 2022
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not reading RFC 822, but based on the descriptions, this looks about right!

That we didn't have to update any tests along with this is... mildly concerning. :)

@brettcannon
Copy link
Member Author

@pradyunsg there aren't any tests with the constructor because there isn't anything more to the class except for the properties for getting the display and canonical names. Once the class starts to do things like consuming or producing metadata then I think we will have more tests. 😉

I also got warnings from Pylance when the names and types changed, so I would assume our mypy tests would have caught any egregious issues.

@brettcannon brettcannon merged commit fd4f111 into pypa:main Oct 6, 2022
@brettcannon brettcannon deleted the metadata-email branch October 6, 2022 22:52
KOLANICH pushed a commit to KOLANICH-libs/packaging that referenced this pull request Nov 30, 2022
Otherwise not all valid metadata can be properly represented by `Metadata` due to the amount of flexibility allowed by RFC-822.
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.

None yet

3 participants