Repository navigation
Replace maybe_regular_expander with maybe_regular_expander_graph - #8050
Merged
Merged
Conversation
amcandio
approved these changes
May 18, 2025
maybe_regular_expandermaybe_regular_expander with maybe_regular_expander_graph
rossbar
approved these changes
Jul 8, 2025
rossbar
left a comment
Contributor
There was a problem hiding this comment.
I'm +1 for this renaming - IMO the added clarity from the _graph suffix is worth the deprecation cycle!
I think this will also need an additional warnings filter in conftest.py in addition to the merge conflict resolution, but LGTM - thanks @Peiffap !
Co-authored-by: Ross Barnowski <[email protected]>
Peiffap
commented
Jul 8, 2025
Member
Author
|
Thanks for the review, @rossbar. I resolved the merge conflict (and moved the deprecation to 3.6), added your spacing suggestion, and added a filter for the warning. |
dschult
approved these changes
Jul 8, 2025
dschult
left a comment
Member
There was a problem hiding this comment.
The name change looks good. The deprecation looks good.
Is this a candidate for our recent creation of getattr with some deprecated function names in networkx/__init__.py? I guess that is a question for when the old name gets removed.
I approve this PR
amcandio
pushed a commit
to amcandio/networkx
that referenced
this pull request
Jul 20, 2025
…etworkx#8050) * Deprecate `maybe_regular_expander` * Add backticks * Spacing after comma Co-authored-by: Ross Barnowski <[email protected]> * Change deprecation version * Ignore `maybe_regular_expander` deprecation warning --------- Co-authored-by: Ross Barnowski <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the
_graphsuffix to the function name. I hope I got all the places the old function was used!Follow-up to a comment by @dschult in #8048 (review)