Skip to content

Conversation

MeGaGiGaGon
Copy link
Contributor

Fixes the Incompletes, adds return types, and changes some ints to floats. Despite the documentation saying "Integer", the code actually uses floats.

if cutoff is None:
    cutoff = float("inf")

Based on https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/connectivity.html

Copy link
Contributor

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

@srittau srittau merged commit d9e58fc into python:main Aug 31, 2025
48 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the networkx-update-approximation-connectivity branch September 1, 2025 00:15
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