Skip to content

Conversation

@b9788213
Copy link
Contributor

@b9788213 b9788213 commented Jan 12, 2026

"value", "key" and "coded_value" properties of the Morsel class in http.cookies can return None when "self._value", "self._key" and "self._coded_value" is never setted before.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks!

@github-actions

This comment has been minimized.

@b9788213
Copy link
Contributor Author

So is it okey now?

@srittau
Copy link
Collaborator

srittau commented Jan 12, 2026

So is it okey now?

The tests need to run successfully (but they should), and then I'll merge this.

@github-actions
Copy link
Contributor

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

@srittau srittau merged commit ce2b37d into python:main Jan 12, 2026
63 checks passed
@b9788213 b9788213 deleted the fix-returns-http-cookies branch January 12, 2026 16:00
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