Skip to content

Conversation

hamdanal
Copy link
Contributor

No description provided.

Comment on lines -13 to +14
personalization: SupportsGetItem[Incomplete, Incomplete] | None = None,
personalization: Mapping[_Node, float] | None = None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Disclaimer: This and similar changes in this PR are are because the functions use more than __getitem__ of the passed arguments and the parameters are documented as dictionaries. Covariant Mapping is a middle ground between a dict and a protocol of only used methods (relying on implementation details).

Copy link
Contributor

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

@srittau srittau merged commit 4fa56fb into python:main Aug 26, 2025
48 checks passed
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