Repository navigation
DEP: Deprecate metric_closure - #8304
Conversation
rossbar
left a comment
There was a problem hiding this comment.
Thanks @Aka2210 ! Just a quick note re: versions - the deprecation version should be the next release, not the current one (as users won't see deprecation warnings until the changes are officially released). That means the deprecation version should be bumped from 3.5 -> 3.6 and the removal version from 3.7 -> 3.8.
Thanks for catching that! I’ve updated the deprecation directive and removal version to 3.6 / 3.8. |
Thanks for the tweaks! No worries at all — I really don’t mind you pushing those changes. I just had a small question: I noticed you updated test_steinertree.py to wrap the metric_closure call in pytest.deprecated_call(). I didn’t see this step explicitly mentioned in the deprecations guideline — did I miss something, or is this more of an established testing convention for deprecated APIs? |
You didn't miss anything - it's not required to do and doesn't apply to every case so it's not explicitly mentioned in the contributor guide. It's more of a double-check that the tests which touch metric closure have been reviewed at the deprecation stage! |
Deprecates metric_closure in networkx.algorithms.approximation.steinertree.
Replacement: use :func:networkx.all_pairs_shortest_path_length.
Related to #8302