Skip to content

Conversation

@lkct
Copy link
Contributor

@lkct lkct commented Nov 5, 2025

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, one note below.

def best_node(self, graph: dict[_Node, set[_Node]]) -> _Node | None: ...

def min_fill_in_heuristic(graph_dict) -> Incomplete | None: ...
def min_fill_in_heuristic(graph_dict: dict[_Node, set[_Node]]) -> _Node | None: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could use a protocol for graph_dict. Unfortunately, _typeshed.SupportsLenAndGetItem is not generic over the item type, but collections.abc.Mapping would be an improvement for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing out. Updated

@github-actions

This comment has been minimized.

@lkct lkct requested a review from srittau November 5, 2025 16:25
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

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

@srittau srittau merged commit 65b8a85 into python:main Nov 5, 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