Skip to content

[networkx] completed type annotation for equivalence_classes #14352

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 1 commit into from
Jun 30, 2025

Conversation

logsincostan
Copy link
Contributor

Annotation is largely in accordance with the documentation:

https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.minors.equivalence_classes.html

The only difference is that iterable is of type Iterable rather than set|list|tuple.

While the documentation does specify that it has to be one of those types, the code only uses the argument to iterate over it once.

Copy link
Contributor

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

@Akuli
Copy link
Collaborator

Akuli commented Jun 30, 2025

Thanks!

@Akuli Akuli merged commit 213e055 into python:main Jun 30, 2025
49 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